Struct augurs_mstl::FittedMSTLModel

source ·
pub struct FittedMSTLModel { /* private fields */ }
Expand description

A model that uses the MSTL to decompose a time series into trend, seasonal and remainder components, and then uses a trend model to forecast the trend component.

Implementations§

source§

impl FittedMSTLModel

source

pub fn fit(&self) -> &MstlResult

Return the MSTL fit of the training data.

Trait Implementations§

source§

impl Debug for FittedMSTLModel

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Predict for FittedMSTLModel

§

type Error = Error

The type of error returned when predicting with the model.
source§

fn predict_inplace( &self, horizon: usize, level: Option<f64>, forecast: &mut Forecast, ) -> Result<(), Error>

Calculate the n-ahead predictions for the given horizon, storing the results in the provided Forecast struct. Read more
source§

fn predict_in_sample_inplace( &self, level: Option<f64>, forecast: &mut Forecast, ) -> Result<(), Error>

Calculate the in-sample predictions, storing the results in the provided Forecast struct. Read more
source§

fn training_data_size(&self) -> usize

Return the number of training data points used to fit the model. Read more
source§

fn predict( &self, horizon: usize, level: impl Into<Option<f64>>, ) -> Result<Forecast, Self::Error>

Return the n-ahead predictions for the given horizon. Read more
source§

fn predict_in_sample( &self, level: impl Into<Option<f64>>, ) -> Result<Forecast, Self::Error>

Return the in-sample predictions. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more