neumaier_sum

Function neumaier_sum 

Source
pub fn neumaier_sum<T: Float>(values: &[T]) -> T
Expand description

Neumaier summation algorithm (improved Kahan summation)

This is an improved version of Kahan summation that handles the case where the next item to be added is larger in absolute value than the running sum.