Trait basic_dsp_vector::PreciseStats

source ·
pub trait PreciseStats<T>: Sized {
    // Required method
    fn add_prec(&mut self, elem: T, index: usize, sumc: &mut T, rmsc: &mut T);
}
Expand description

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§

source

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

Object Safety§

This trait is not object safe.

Implementors§