Generation and prediction of time series by a neural network.