Fit

Trait Fit 

Source
pub trait Fit {
    type Fitted: Predict;
    type Error: ModelError;

    // Required method
    fn fit(&self, y: &[f64]) -> Result<Self::Fitted, Self::Error>;
}
Expand description

A new, unfitted time series forecasting model.

Required Associated Types§

Source

type Fitted: Predict

The type of the fitted model produced by the fit method.

Source

type Error: ModelError

The type of error returned when fitting the model.

Required Methods§

Source

fn fit(&self, y: &[f64]) -> Result<Self::Fitted, Self::Error>

Fit the model to the training data.

Implementations on Foreign Types§

Source§

impl<F> Fit for Box<F>
where F: Fit,

Source§

type Fitted = <F as Fit>::Fitted

Source§

type Error = <F as Fit>::Error

Source§

fn fit( &self, y: &[f64], ) -> Result<<Box<F> as Fit>::Fitted, <Box<F> as Fit>::Error>

Implementors§