pub struct UnweightedSumOfSquares<T> { /* private fields */ }
Expand description
Unweighted sum of squares / Total Sum of Squares / SST using Chan, Golub, LeVeque’s algorithm in TR222 1.3b
Implementations§
Source§impl<T> UnweightedSumOfSquares<T>
impl<T> UnweightedSumOfSquares<T>
pub fn get_mean(&self) -> T
pub fn get_unweighted_sum_of_squares(&self) -> T
Trait Implementations§
Source§impl<T: Clone> Clone for UnweightedSumOfSquares<T>
impl<T: Clone> Clone for UnweightedSumOfSquares<T>
Source§fn clone(&self) -> UnweightedSumOfSquares<T>
fn clone(&self) -> UnweightedSumOfSquares<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 UnweightedSumOfSquares<T>
impl<T: Debug> Debug for UnweightedSumOfSquares<T>
Source§impl<T: Default> Default for UnweightedSumOfSquares<T>
impl<T: Default> Default for UnweightedSumOfSquares<T>
Source§fn default() -> UnweightedSumOfSquares<T>
fn default() -> UnweightedSumOfSquares<T>
Returns the “default value” for a type. Read more
Source§impl<Type> StreamingStatistic for UnweightedSumOfSquares<Type>
impl<Type> StreamingStatistic for UnweightedSumOfSquares<Type>
type Type = Type
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 UnweightedSumOfSquares<T>
Auto Trait Implementations§
impl<T> Freeze for UnweightedSumOfSquares<T>where
T: Freeze,
impl<T> RefUnwindSafe for UnweightedSumOfSquares<T>where
T: RefUnwindSafe,
impl<T> Send for UnweightedSumOfSquares<T>where
T: Send,
impl<T> Sync for UnweightedSumOfSquares<T>where
T: Sync,
impl<T> Unpin for UnweightedSumOfSquares<T>where
T: Unpin,
impl<T> UnwindSafe for UnweightedSumOfSquares<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