Trait tea_rolling::RollingValidReg

source ·
pub trait RollingValidReg<T: IsNone>: Vec1View<T> {
    // Provided methods
    fn ts_vreg_to<O: Vec1<U>, U>(
        &self,
        window: usize,
        min_periods: Option<usize>,
        out: Option<O::UninitRefMut<'_>>,
    ) -> Option<O>
       where T::Inner: Number,
             f64: Cast<U> { ... }
    fn ts_vreg<O: Vec1<U>, U>(
        &self,
        window: usize,
        min_periods: Option<usize>,
    ) -> O
       where T::Inner: Number,
             f64: Cast<U> { ... }
    fn ts_vtsf_to<O: Vec1<U>, U>(
        &self,
        window: usize,
        min_periods: Option<usize>,
        out: Option<O::UninitRefMut<'_>>,
    ) -> Option<O>
       where T::Inner: Number,
             f64: Cast<U> { ... }
    fn ts_vtsf<O: Vec1<U>, U>(
        &self,
        window: usize,
        min_periods: Option<usize>,
    ) -> O
       where T::Inner: Number,
             f64: Cast<U> { ... }
    fn ts_vreg_slope_to<O: Vec1<U>, U>(
        &self,
        window: usize,
        min_periods: Option<usize>,
        out: Option<O::UninitRefMut<'_>>,
    ) -> Option<O>
       where T::Inner: Number,
             f64: Cast<U> { ... }
    fn ts_vreg_slope<O: Vec1<U>, U>(
        &self,
        window: usize,
        min_periods: Option<usize>,
    ) -> O
       where T::Inner: Number,
             f64: Cast<U> { ... }
    fn ts_vreg_intercept_to<O: Vec1<U>, U>(
        &self,
        window: usize,
        min_periods: Option<usize>,
        out: Option<O::UninitRefMut<'_>>,
    ) -> Option<O>
       where T::Inner: Number,
             f64: Cast<U> { ... }
    fn ts_vreg_intercept<O: Vec1<U>, U>(
        &self,
        window: usize,
        min_periods: Option<usize>,
    ) -> O
       where T::Inner: Number,
             f64: Cast<U> { ... }
    fn ts_vreg_resid_mean_to<O: Vec1<U>, U>(
        &self,
        window: usize,
        min_periods: Option<usize>,
        out: Option<O::UninitRefMut<'_>>,
    ) -> Option<O>
       where T::Inner: Number,
             f64: Cast<U> { ... }
    fn ts_vreg_resid_mean<O: Vec1<U>, U>(
        &self,
        window: usize,
        min_periods: Option<usize>,
    ) -> O
       where T::Inner: Number,
             f64: Cast<U> { ... }
}
Expand description

Trait for rolling window regression operations on valid (non-None) elements.

Provided Methods§

source

fn ts_vreg_to<O: Vec1<U>, U>( &self, window: usize, min_periods: Option<usize>, out: Option<O::UninitRefMut<'_>>, ) -> Option<O>
where T::Inner: Number, f64: Cast<U>,

Calculates the rolling regression (predicted value) for valid elements within a window.

§Arguments
  • window - The size of the rolling window.
  • min_periods - The minimum number of observations in window required to have a value.
  • out - Optional output buffer to store the results.
§Returns

A vector containing the rolling regression predicted values.

source

fn ts_vreg<O: Vec1<U>, U>(&self, window: usize, min_periods: Option<usize>) -> O
where T::Inner: Number, f64: Cast<U>,

Calculates the rolling regression (predicted value) for valid elements within a window.

§Arguments
  • window - The size of the rolling window.
  • min_periods - The minimum number of observations in window required to have a value.
  • out - Optional output buffer to store the results.
§Returns

A vector containing the rolling regression predicted values.

source

fn ts_vtsf_to<O: Vec1<U>, U>( &self, window: usize, min_periods: Option<usize>, out: Option<O::UninitRefMut<'_>>, ) -> Option<O>
where T::Inner: Number, f64: Cast<U>,

Calculates the rolling time series forecast for valid elements within a window.

§Arguments
  • window - The size of the rolling window.
  • min_periods - The minimum number of observations in window required to have a value.
  • out - Optional output buffer to store the results.
§Returns

A vector containing the rolling time series forecast values.

source

fn ts_vtsf<O: Vec1<U>, U>(&self, window: usize, min_periods: Option<usize>) -> O
where T::Inner: Number, f64: Cast<U>,

Calculates the rolling time series forecast for valid elements within a window.

§Arguments
  • window - The size of the rolling window.
  • min_periods - The minimum number of observations in window required to have a value.
  • out - Optional output buffer to store the results.
§Returns

A vector containing the rolling time series forecast values.

source

fn ts_vreg_slope_to<O: Vec1<U>, U>( &self, window: usize, min_periods: Option<usize>, out: Option<O::UninitRefMut<'_>>, ) -> Option<O>
where T::Inner: Number, f64: Cast<U>,

Calculates the rolling regression slope for valid elements within a window.

§Arguments
  • window - The size of the rolling window.
  • min_periods - The minimum number of observations in window required to have a value.
  • out - Optional output buffer to store the results.
§Returns

A vector containing the rolling regression slope values.

source

fn ts_vreg_slope<O: Vec1<U>, U>( &self, window: usize, min_periods: Option<usize>, ) -> O
where T::Inner: Number, f64: Cast<U>,

Calculates the rolling regression slope for valid elements within a window.

§Arguments
  • window - The size of the rolling window.
  • min_periods - The minimum number of observations in window required to have a value.
  • out - Optional output buffer to store the results.
§Returns

A vector containing the rolling regression slope values.

source

fn ts_vreg_intercept_to<O: Vec1<U>, U>( &self, window: usize, min_periods: Option<usize>, out: Option<O::UninitRefMut<'_>>, ) -> Option<O>
where T::Inner: Number, f64: Cast<U>,

Calculates the rolling regression intercept for valid elements within a window.

§Arguments
  • window - The size of the rolling window.
  • min_periods - The minimum number of observations in window required to have a value.
  • out - Optional output buffer to store the results.
§Returns

A vector containing the rolling regression intercept values.

source

fn ts_vreg_intercept<O: Vec1<U>, U>( &self, window: usize, min_periods: Option<usize>, ) -> O
where T::Inner: Number, f64: Cast<U>,

Calculates the rolling regression intercept for valid elements within a window.

§Arguments
  • window - The size of the rolling window.
  • min_periods - The minimum number of observations in window required to have a value.
  • out - Optional output buffer to store the results.
§Returns

A vector containing the rolling regression intercept values.

source

fn ts_vreg_resid_mean_to<O: Vec1<U>, U>( &self, window: usize, min_periods: Option<usize>, out: Option<O::UninitRefMut<'_>>, ) -> Option<O>
where T::Inner: Number, f64: Cast<U>,

Calculates the rolling regression residual mean for valid elements within a window.

§Arguments
  • window - The size of the rolling window.
  • min_periods - The minimum number of observations in window required to have a value.
  • out - Optional output buffer to store the results.
§Returns

A vector containing the rolling regression residual mean values.

source

fn ts_vreg_resid_mean<O: Vec1<U>, U>( &self, window: usize, min_periods: Option<usize>, ) -> O
where T::Inner: Number, f64: Cast<U>,

Calculates the rolling regression residual mean for valid elements within a window.

§Arguments
  • window - The size of the rolling window.
  • min_periods - The minimum number of observations in window required to have a value.
  • out - Optional output buffer to store the results.
§Returns

A vector containing the rolling regression residual mean values.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: IsNone, I: Vec1View<T>> RollingValidReg<T> for I