pub struct RunningMean<T>{ /* private fields */ }Expand description
A generic running mean calculator with a fixed-size sliding window. Maintains a running sum and count to compute the mean in O(1) time.
Implementations§
Source§impl<T> RunningMean<T>
impl<T> RunningMean<T>
Trait Implementations§
Source§impl<T> Clone for RunningMean<T>
impl<T> Clone for RunningMean<T>
Source§fn clone(&self) -> RunningMean<T>
fn clone(&self) -> RunningMean<T>
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<T> Freeze for RunningMean<T>where
T: Freeze,
impl<T> RefUnwindSafe for RunningMean<T>where
T: RefUnwindSafe,
impl<T> Send for RunningMean<T>where
T: Send,
impl<T> Sync for RunningMean<T>where
T: Sync,
impl<T> Unpin for RunningMean<T>where
T: Unpin,
impl<T> UnsafeUnpin for RunningMean<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for RunningMean<T>where
T: UnwindSafe,
Blanket Implementations§
impl<T> BlockMetadata for T
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