Nonparametric Prediction of Time Series on the Basis of Typical Course Patterns