|
ngscopeclient v0.1
|
Helper class for performing a Kahan summation on a large number of floating point numbers. More...
#include <KahanSummation.h>
Public Member Functions | |
| void | Reset (float f=0) |
| Resets the sum (default to zero) | |
| float | operator+= (float rhs) |
| Add a new value to the sum. | |
| float | GetSum () |
Protected Attributes | |
| float | m_partialSum |
| float | m_errorTerm |
Helper class for performing a Kahan summation on a large number of floating point numbers.