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§
sourcefn ts_vreg_to<O: Vec1<U>, U>(
&self,
window: usize,
min_periods: Option<usize>,
out: Option<O::UninitRefMut<'_>>,
) -> Option<O>
fn ts_vreg_to<O: Vec1<U>, U>( &self, window: usize, min_periods: Option<usize>, out: Option<O::UninitRefMut<'_>>, ) -> Option<O>
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.
sourcefn ts_vreg<O: Vec1<U>, U>(&self, window: usize, min_periods: Option<usize>) -> O
fn ts_vreg<O: Vec1<U>, U>(&self, window: usize, min_periods: Option<usize>) -> O
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.
sourcefn ts_vtsf_to<O: Vec1<U>, U>(
&self,
window: usize,
min_periods: Option<usize>,
out: Option<O::UninitRefMut<'_>>,
) -> Option<O>
fn ts_vtsf_to<O: Vec1<U>, U>( &self, window: usize, min_periods: Option<usize>, out: Option<O::UninitRefMut<'_>>, ) -> Option<O>
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.
sourcefn ts_vtsf<O: Vec1<U>, U>(&self, window: usize, min_periods: Option<usize>) -> O
fn ts_vtsf<O: Vec1<U>, U>(&self, window: usize, min_periods: Option<usize>) -> O
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.
sourcefn ts_vreg_slope_to<O: Vec1<U>, U>(
&self,
window: usize,
min_periods: Option<usize>,
out: Option<O::UninitRefMut<'_>>,
) -> Option<O>
fn ts_vreg_slope_to<O: Vec1<U>, U>( &self, window: usize, min_periods: Option<usize>, out: Option<O::UninitRefMut<'_>>, ) -> Option<O>
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.
sourcefn ts_vreg_slope<O: Vec1<U>, U>(
&self,
window: usize,
min_periods: Option<usize>,
) -> O
fn ts_vreg_slope<O: Vec1<U>, U>( &self, window: usize, min_periods: Option<usize>, ) -> O
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.
sourcefn ts_vreg_intercept_to<O: Vec1<U>, U>(
&self,
window: usize,
min_periods: Option<usize>,
out: Option<O::UninitRefMut<'_>>,
) -> Option<O>
fn ts_vreg_intercept_to<O: Vec1<U>, U>( &self, window: usize, min_periods: Option<usize>, out: Option<O::UninitRefMut<'_>>, ) -> Option<O>
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.
sourcefn ts_vreg_intercept<O: Vec1<U>, U>(
&self,
window: usize,
min_periods: Option<usize>,
) -> O
fn ts_vreg_intercept<O: Vec1<U>, U>( &self, window: usize, min_periods: Option<usize>, ) -> O
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.
sourcefn ts_vreg_resid_mean_to<O: Vec1<U>, U>(
&self,
window: usize,
min_periods: Option<usize>,
out: Option<O::UninitRefMut<'_>>,
) -> Option<O>
fn ts_vreg_resid_mean_to<O: Vec1<U>, U>( &self, window: usize, min_periods: Option<usize>, out: Option<O::UninitRefMut<'_>>, ) -> Option<O>
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.
sourcefn ts_vreg_resid_mean<O: Vec1<U>, U>(
&self,
window: usize,
min_periods: Option<usize>,
) -> O
fn ts_vreg_resid_mean<O: Vec1<U>, U>( &self, window: usize, min_periods: Option<usize>, ) -> O
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.