pub struct FloatSeriesEwmaFilter<T> { /* private fields */ }
Expand description
Implements exponential weighted moving average of time series samples, including exponentially fading minimum and maximum
Implementations§
Trait Implementations§
source§impl<T> EwmaFilter<T> for FloatSeriesEwmaFilter<T>
impl<T> EwmaFilter<T> for FloatSeriesEwmaFilter<T>
source§fn push_sample(&mut self, new_value: T) -> T
fn push_sample(&mut self, new_value: T) -> T
Returns exponentially weighted moving average
source§fn ewma_average(&self) -> T
fn ewma_average(&self) -> T
Returns cached exponentially weighted moving average
source§fn local_range(&self) -> Range<T>
fn local_range(&self) -> Range<T>
returns the local minima and maxima
Auto Trait Implementations§
impl<T> RefUnwindSafe for FloatSeriesEwmaFilter<T>where
T: RefUnwindSafe,
impl<T> Send for FloatSeriesEwmaFilter<T>where
T: Send,
impl<T> Sync for FloatSeriesEwmaFilter<T>where
T: Sync,
impl<T> Unpin for FloatSeriesEwmaFilter<T>where
T: Unpin,
impl<T> UnwindSafe for FloatSeriesEwmaFilter<T>where
T: UnwindSafe,
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