pub struct TrendAnalyzer { /* private fields */ }Expand description
Trend analyzer for time series and patterns
Implementations§
Source§impl TrendAnalyzer
impl TrendAnalyzer
Sourcepub fn new(
min_points: usize,
smoothing_window: usize,
seasonality_detection: bool,
) -> Self
pub fn new( min_points: usize, smoothing_window: usize, seasonality_detection: bool, ) -> Self
Create new trend analyzer
Sourcepub fn analyze(&self, data_points: &[DataPoint]) -> RragResult<TrendAnalysis>
pub fn analyze(&self, data_points: &[DataPoint]) -> RragResult<TrendAnalysis>
Analyze trends in data points
Auto Trait Implementations§
impl Freeze for TrendAnalyzer
impl RefUnwindSafe for TrendAnalyzer
impl Send for TrendAnalyzer
impl Sync for TrendAnalyzer
impl Unpin for TrendAnalyzer
impl UnwindSafe for TrendAnalyzer
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