Trait splr::types::EmaIF [−][src]
API for Exponential Moving Average, EMA, like get
, reset
, update
and so on.
Associated Types
Loading content...Required methods
fn get(&self) -> f64
[src]
return the current value.
fn update(&mut self, x: Self::Input)
[src]
catch up with the current state.
Provided methods
fn reset(&mut self)
[src]
reset internal data.
fn trend(&self) -> f64
[src]
return a ratio of short / long statistics.