pub struct Alma { /* private fields */ }Expand description
Arnaud Legoux Moving Average (ALMA)
Implementations§
Trait Implementations§
Source§impl Smoother for Alma
impl Smoother for Alma
Source§fn update(&mut self, src: f64) -> Option<f64>
fn update(&mut self, src: f64) -> Option<f64>
Feeds one value. Returns
None while still inside this smoother’s own warmup.fn reset(&mut self)
Source§fn warmup_period(&self) -> usize
fn warmup_period(&self) -> usize
Bars needed before this smoother first returns
Some. 0 for smoothers that emit from
the first sample (Ema, Jma).Auto Trait Implementations§
impl Freeze for Alma
impl RefUnwindSafe for Alma
impl Send for Alma
impl Sync for Alma
impl Unpin for Alma
impl UnsafeUnpin for Alma
impl UnwindSafe for Alma
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