[][src]Struct time_series_filter::FloatSeriesEwmaFilter

pub struct FloatSeriesEwmaFilter<T> { /* fields omitted */ }

Implements exponential weighted moving average of time series samples, including exponentially fading minimum and maximum

Methods

impl<T> FloatSeriesEwmaFilter<T> where
    T: Float + AddAssign
[src]

pub fn new(alpha: T) -> Self[src]

pub fn default() -> Self[src]

Trait Implementations

impl<T> EwmaFilter<T> for FloatSeriesEwmaFilter<T> where
    T: Float + AddAssign
[src]

fn push_sample(&mut self, new_value: T) -> T[src]

Returns exponentially weighted moving average

Auto Trait Implementations

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.