public class KahanSummation extends Object
| Constructor and Description |
|---|
KahanSummation() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(double v)
Adds a value.
|
void |
reset()
Resets the current value and correction to zero.
|
double |
value()
Returns the sum computed so far.
|