[][src]Trait basic_dsp::PreciseStats

pub trait PreciseStats<T> {
    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

Loading content...

Implementors

impl<T> PreciseStats<Complex<T>> for Statistics<Complex<T>> where
    T: RealNumber
[src]

impl<T> PreciseStats<T> for Statistics<T> where
    T: RealNumber
[src]

Loading content...