pub struct EMA { /* private fields */ }Expand description
Exponential Moving Average calculator
Uses the standard EMA formula: EMA_t = price * k + EMA_{t-1} * (1 - k) where k = 2 / (period + 1)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EMA
impl RefUnwindSafe for EMA
impl Send for EMA
impl Sync for EMA
impl Unpin for EMA
impl UnsafeUnpin for EMA
impl UnwindSafe for EMA
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