pub struct RunningMoments { /* private fields */ }Expand description
Count, mean and spread of a stream of values, updated one value at a time with Welford’s method.
Implementations§
Source§impl RunningMoments
impl RunningMoments
Sourcepub fn standard_deviation(&self) -> Option<f64>
pub fn standard_deviation(&self) -> Option<f64>
Returns the sample standard deviation, with n - 1 in the denominator, or None below two values.
Sourcepub fn summary(&self) -> ReplicateSummary
pub fn summary(&self) -> ReplicateSummary
Returns the count, mean, standard deviation and 95% confidence interval of the values so far.
Trait Implementations§
Source§impl Clone for RunningMoments
impl Clone for RunningMoments
impl Copy for RunningMoments
Source§impl Debug for RunningMoments
impl Debug for RunningMoments
Source§impl Default for RunningMoments
impl Default for RunningMoments
Source§impl PartialEq for RunningMoments
impl PartialEq for RunningMoments
impl StructuralPartialEq for RunningMoments
Auto Trait Implementations§
impl Freeze for RunningMoments
impl RefUnwindSafe for RunningMoments
impl Send for RunningMoments
impl Sync for RunningMoments
impl Unpin for RunningMoments
impl UnsafeUnpin for RunningMoments
impl UnwindSafe for RunningMoments
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