pub struct TimeSeriesPreprocessor {
pub missing_value_strategy: MissingValueStrategy,
pub outlier_detection: OutlierDetection,
pub normalization: Option<Normalization>,
pub differencing: Option<Differencing>,
pub smoothing: Option<SmoothingConfig>,
pub resampling: Option<ResamplingConfig>,
}
Expand description
Time series preprocessor with configurable options
Fields§
§missing_value_strategy: MissingValueStrategy
Missing value strategy
outlier_detection: OutlierDetection
Outlier detection method
normalization: Option<Normalization>
Normalization method
differencing: Option<Differencing>
Differencing configuration
smoothing: Option<SmoothingConfig>
Smoothing configuration
resampling: Option<ResamplingConfig>
Resampling configuration
Implementations§
Source§impl TimeSeriesPreprocessor
impl TimeSeriesPreprocessor
Sourcepub fn with_missing_value_strategy(self, strategy: MissingValueStrategy) -> Self
pub fn with_missing_value_strategy(self, strategy: MissingValueStrategy) -> Self
Set missing value strategy
Sourcepub fn with_outlier_detection(self, detection: OutlierDetection) -> Self
pub fn with_outlier_detection(self, detection: OutlierDetection) -> Self
Set outlier detection method
Sourcepub fn with_normalization(self, normalization: Normalization) -> Self
pub fn with_normalization(self, normalization: Normalization) -> Self
Set normalization method
Sourcepub fn with_differencing(self, differencing: Differencing) -> Self
pub fn with_differencing(self, differencing: Differencing) -> Self
Set differencing configuration
Sourcepub fn with_smoothing(self, smoothing: SmoothingConfig) -> Self
pub fn with_smoothing(self, smoothing: SmoothingConfig) -> Self
Set smoothing configuration
Sourcepub fn with_resampling(self, resampling: ResamplingConfig) -> Self
pub fn with_resampling(self, resampling: ResamplingConfig) -> Self
Set resampling configuration
Sourcepub fn preprocess(&self, ts: &TimeSeries) -> Result<PreprocessingResult>
pub fn preprocess(&self, ts: &TimeSeries) -> Result<PreprocessingResult>
Preprocess the time series
Trait Implementations§
Source§impl Clone for TimeSeriesPreprocessor
impl Clone for TimeSeriesPreprocessor
Source§fn clone(&self) -> TimeSeriesPreprocessor
fn clone(&self) -> TimeSeriesPreprocessor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TimeSeriesPreprocessor
impl Debug for TimeSeriesPreprocessor
Auto Trait Implementations§
impl Freeze for TimeSeriesPreprocessor
impl RefUnwindSafe for TimeSeriesPreprocessor
impl Send for TimeSeriesPreprocessor
impl Sync for TimeSeriesPreprocessor
impl Unpin for TimeSeriesPreprocessor
impl UnwindSafe for TimeSeriesPreprocessor
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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