Trait splr::types::EmaIF [−][src]
pub trait EmaIF { type Input; fn get(&self) -> f64; fn update(&mut self, x: Self::Input); fn reset(&mut self) { ... } fn trend(&self) -> f64 { ... } }
Expand description
API for Exponential Moving Average, EMA, like get
, reset
, update
and so on.