Accurate summation of floating point numbers with the Kahan algorithm Reduces round-off effects which arise if the total sum is significantly larger than the single summands.
More...
template<typename T>
class olb::util::KahanSummator< T >
Accurate summation of floating point numbers with the Kahan algorithm Reduces round-off effects which arise if the total sum is significantly larger than the single summands.
Works very well for adding many numbers of the same sign. Does not really help if sign changes, e.g. if the summands are randomly distributed around 0. Cf. https://en.wikipedia.org/wiki/Kahan_summation_algorithm
Definition at line 57 of file calc.h.