Trait basic_dsp_vector::PreciseStats
[−]
[src]
pub trait PreciseStats<T>: Sized { fn add_prec(&mut self, elem: T, index: usize, sumc: &mut T, rmsc: &mut T); }
A trait for statistics which allows to add new values in a way so that the numerical uncertainty has less impact on the final results.
Required Methods
fn add_prec(&mut self, elem: T, index: usize, sumc: &mut T, rmsc: &mut T)
Adds a new values to the statistics using the Kahan summation algorithm described here: https://en.wikipedia.org/wiki/Kahan_summation_algorithm
Implementors
impl<T> PreciseStats<T> for Statistics<T> where
T: RealNumber,impl<T> PreciseStats<Complex<T>> for Statistics<Complex<T>> where
T: RealNumber,