Skip to main content

Fitted

Trait Fitted 

Source
pub trait Fitted: Send + Sync {
    // Required method
    fn forecast(&self, h: usize) -> Vec<f64>;

    // Provided method
    fn params(&self) -> Params { ... }
}
Expand description

A model estimated on a series. It is plain data: it can be kept, sent to another thread and asked for forecasts from several at once.

Required Methods§

Source

fn forecast(&self, h: usize) -> Vec<f64>

Point forecasts for the h periods after the last observation. They are not finite where the model cannot say: past the rows of its regressors, for instance. Model::forecast checks that.

Provided Methods§

Source

fn params(&self) -> Params

Estimated parameters.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§