pub struct Rma { /* private fields */ }Expand description
Wilder smoothing (alpha = 1/len): seeds with the SMA of the first len samples
Implementations§
Trait Implementations§
Source§impl Smoother for Rma
impl Smoother for Rma
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 Rma
impl RefUnwindSafe for Rma
impl Send for Rma
impl Sync for Rma
impl Unpin for Rma
impl UnsafeUnpin for Rma
impl UnwindSafe for Rma
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