This implementation uses the Burg algorithm to obtain the coefficients of the AR model.
Constructor: AutoRegressiveModel(order, data, delta_t=1.)
the order of the model (an integer)
the time series (sequence of floats)
the sampling interval for the time series (default: 1.)
Return the next step in the series according to linear prediction. The returned value is also appended internally to the current trajectory, making it possible to call this method repeatedly in order to obtain a sequence of predicted steps.
Return the frequency spectrum of the process at the angular frequencies omega (an array).
Return the autocorrelation function of the process (as estimated from the AR model) up to nsteps times the sampling interval.
Return the memory function corresponding to the autocorrelation function of the process up to nsteps times the sampling interval.
Return the friction constant (the integral over the memory function) of the process.
An averaged model is constructed by averaging the model coefficients of several auto-regressive models of the same order. An averaged model is created empty, then individual models are added.
Constructor: AveragedAutoRegressiveModel(order, delta_t)
the order of the model (an integer)
the sampling interval for the time series
Add the coefficients of model to the average using weight.