pub struct BiasedStandardDeviation<T> { /* private fields */ }
Expand description
Returns the Biased Standard Deviation, which is the square root of the biased Variance, also known as the ‘Population Standard Deviation’
Implementations§
Source§impl<T> BiasedStandardDeviation<T>
impl<T> BiasedStandardDeviation<T>
pub fn get_mean(&self) -> T
pub fn get_unweighted_sum_of_squares(&self) -> Option<T>
pub fn get_biased_variance(&self) -> Option<T>
pub fn get_biased_stdev(&self) -> Option<T>
Trait Implementations§
Source§impl<T: Clone> Clone for BiasedStandardDeviation<T>
impl<T: Clone> Clone for BiasedStandardDeviation<T>
Source§fn clone(&self) -> BiasedStandardDeviation<T>
fn clone(&self) -> BiasedStandardDeviation<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for BiasedStandardDeviation<T>
impl<T: Debug> Debug for BiasedStandardDeviation<T>
Source§impl<T: Default> Default for BiasedStandardDeviation<T>
impl<T: Default> Default for BiasedStandardDeviation<T>
Source§fn default() -> BiasedStandardDeviation<T>
fn default() -> BiasedStandardDeviation<T>
Returns the “default value” for a type. Read more
Source§impl<T> StreamingStatistic for BiasedStandardDeviation<T>
impl<T> StreamingStatistic for BiasedStandardDeviation<T>
type Type = T
Source§fn add_sample(&mut self, sample: Self::Type) -> Self::Type
fn add_sample(&mut self, sample: Self::Type) -> Self::Type
adds a sample to this streaming statistic, returning a result of the operation.
Source§fn get_last_sample(&self) -> Self::Type
fn get_last_sample(&self) -> Self::Type
Returns a copy of the last sample added
Source§fn get_last_result(&self) -> Self::Type
fn get_last_result(&self) -> Self::Type
Returns the last value returned by ‘add_sample’
Source§fn get_num_samples(&self) -> u64
fn get_num_samples(&self) -> u64
Returns the total number of samples pushed in
impl<T: Copy> Copy for BiasedStandardDeviation<T>
Auto Trait Implementations§
impl<T> Freeze for BiasedStandardDeviation<T>where
T: Freeze,
impl<T> RefUnwindSafe for BiasedStandardDeviation<T>where
T: RefUnwindSafe,
impl<T> Send for BiasedStandardDeviation<T>where
T: Send,
impl<T> Sync for BiasedStandardDeviation<T>where
T: Sync,
impl<T> Unpin for BiasedStandardDeviation<T>where
T: Unpin,
impl<T> UnwindSafe for BiasedStandardDeviation<T>where
T: 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