pub struct RunningStats<S: Scalar> { /* private fields */ }Expand description
Running statistics using Welford’s online algorithm.
Memory-efficient for streaming data or very large ensembles.
Implementations§
Source§impl<S: Scalar> RunningStats<S>
impl<S: Scalar> RunningStats<S>
Sourcepub fn variance(&self) -> S
pub fn variance(&self) -> S
Current variance estimate (sample variance with Bessel correction).
Sourcepub fn standard_error(&self) -> S
pub fn standard_error(&self) -> S
Standard error of the mean.
Sourcepub fn merge(&mut self, other: &RunningStats<S>)
pub fn merge(&mut self, other: &RunningStats<S>)
Merge another RunningStats into this one (parallel reduction).
Trait Implementations§
Source§impl<S: Clone + Scalar> Clone for RunningStats<S>
impl<S: Clone + Scalar> Clone for RunningStats<S>
Source§fn clone(&self) -> RunningStats<S>
fn clone(&self) -> RunningStats<S>
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<S> Freeze for RunningStats<S>where
S: Freeze,
impl<S> RefUnwindSafe for RunningStats<S>where
S: RefUnwindSafe,
impl<S> Send for RunningStats<S>
impl<S> Sync for RunningStats<S>
impl<S> Unpin for RunningStats<S>where
S: Unpin,
impl<S> UnsafeUnpin for RunningStats<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for RunningStats<S>where
S: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more