Package ca.spatial.patchworks
Class Complex
java.lang.Object
ca.spatial.patchworks.Complex
The Complex class sums a series of numbers using using
Neumaier's enhanced version of Kahan's summation algorithm.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Complex
public Complex()
-
-
Method Details
-
reset
public final void reset()Reset the counters for this summation -
getSoft
public final double getSoft()Return the value of the summation. Check and correct for potential inaccuracies due to loss of precision. -
add
public final void add(double value)Add a value into the series -
sub
public final void sub(double value)Subtract a value from the series. -
toString
-