pub struct IncrementalEma { /* private fields */ }Expand description
Incremental EMA — O(1) update per tick that returns the new value each call.
Unlike EMA (which separates update from value/is_ready), this
seeds from the first sample and returns the EMA on every update, which
suits streaming pipelines that consume the value inline.
Implementations§
Trait Implementations§
Source§impl Clone for IncrementalEma
impl Clone for IncrementalEma
Source§fn clone(&self) -> IncrementalEma
fn clone(&self) -> IncrementalEma
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IncrementalEma
impl RefUnwindSafe for IncrementalEma
impl Send for IncrementalEma
impl Sync for IncrementalEma
impl Unpin for IncrementalEma
impl UnsafeUnpin for IncrementalEma
impl UnwindSafe for IncrementalEma
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