pub struct LagFeatureGenerator;Expand description
Lag features generator for time series
Implementations§
Source§impl LagFeatureGenerator
impl LagFeatureGenerator
Sourcepub fn generate_lag_features(
data: &Array1<f64>,
lags: &[usize],
) -> Result<Array2<f64>, UtilsError>
pub fn generate_lag_features( data: &Array1<f64>, lags: &[usize], ) -> Result<Array2<f64>, UtilsError>
Generate lag features for time series data
Sourcepub fn generate_diff_features(
data: &Array1<f64>,
orders: &[usize],
) -> Result<Array2<f64>, UtilsError>
pub fn generate_diff_features( data: &Array1<f64>, orders: &[usize], ) -> Result<Array2<f64>, UtilsError>
Generate differencing features
Auto Trait Implementations§
impl Freeze for LagFeatureGenerator
impl RefUnwindSafe for LagFeatureGenerator
impl Send for LagFeatureGenerator
impl Sync for LagFeatureGenerator
impl Unpin for LagFeatureGenerator
impl UnwindSafe for LagFeatureGenerator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more