pub struct UnbiasedStandardDeviation<T> { /* private fields */ }
Expand description
Returns the Unbiased Standard Deviation, which is the square root of the unbiased Variance, also known as the ‘Sample Standard Deviation’
Implementations§
Source§impl<T> UnbiasedStandardDeviation<T>
impl<T> UnbiasedStandardDeviation<T>
pub fn get_mean(&self) -> T
pub fn get_unweighted_sum_of_squares(&self) -> Option<T>
pub fn get_unbiased_variance(&self) -> Option<T>
pub fn get_unbiased_stdev(&self) -> Option<T>
Trait Implementations§
Source§impl<T: Clone> Clone for UnbiasedStandardDeviation<T>
impl<T: Clone> Clone for UnbiasedStandardDeviation<T>
Source§fn clone(&self) -> UnbiasedStandardDeviation<T>
fn clone(&self) -> UnbiasedStandardDeviation<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 UnbiasedStandardDeviation<T>
impl<T: Debug> Debug for UnbiasedStandardDeviation<T>
Source§impl<T: Default> Default for UnbiasedStandardDeviation<T>
impl<T: Default> Default for UnbiasedStandardDeviation<T>
Source§fn default() -> UnbiasedStandardDeviation<T>
fn default() -> UnbiasedStandardDeviation<T>
Returns the “default value” for a type. Read more
Source§impl<T> StreamingStatistic for UnbiasedStandardDeviation<T>
impl<T> StreamingStatistic for UnbiasedStandardDeviation<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 UnbiasedStandardDeviation<T>
Auto Trait Implementations§
impl<T> Freeze for UnbiasedStandardDeviation<T>where
T: Freeze,
impl<T> RefUnwindSafe for UnbiasedStandardDeviation<T>where
T: RefUnwindSafe,
impl<T> Send for UnbiasedStandardDeviation<T>where
T: Send,
impl<T> Sync for UnbiasedStandardDeviation<T>where
T: Sync,
impl<T> Unpin for UnbiasedStandardDeviation<T>where
T: Unpin,
impl<T> UnwindSafe for UnbiasedStandardDeviation<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