Located in compilation unit of io.
| Modifier and Type | Method and Description |
|---|---|
| public static < element type T> double[] | Returns: A pair[sum, size], where sum is the compensated sum and size is the number of elements which were summed.the elements ts, ToDoubleFunction<T> function which maps elements to toDouble)double valuesUses Neumaier's variant of the Kahan summation algorithm in order to sum double values. |
| neumaierSum | back to summary |
|---|---|
| public static <T> double[] neumaierSum(Iterable<T> ts, ToDoubleFunction<T> toDouble) Uses Neumaier's variant of the Kahan summation algorithm in order to sum double values. See Kahan summation algorithm.
| |