Expand description
Create for sampling data from an autoregressive random process.
For more information, please see https://en.wikipedia.org/wiki/Autoregressive_model.
let mut ar = autoregressive::univariate::Autoregressive::new(0.0, 1.0, &[0.5]);
// Sample next value
let n = ar.step();
// Take 10 values as an iterator
let n10 = ar.take(10).collect::<Vec<f32>>();
Modulesยง
- univariate
- Univariate AR model