Struct compute::timeseries::AR[][src]

pub struct AR {
    pub p: usize,
    pub coeffs: Vec<f64>,
    pub intercept: f64,
}
Expand description

Implements an autoregressive models.

Fields

p: usizecoeffs: Vec<f64>intercept: f64

Implementations

Create a new autoregressive model of order p.

Fit the AR(p) model to the data using the Yule-Walker equations.

Given some data, predict the value for a single timestep ahead.

Predict n values ahead. For forecasts after the first forecast, uses previous forecasts as “data” to create subsequent forecasts.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.