public abstract class KahanFunction extends ValueFunction implements Serializable
| Constructor and Description |
|---|
KahanFunction() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
execute2(KahanObject kObj,
double in)
Add the given term to the existing sum with a function applied
using the Kahan summation algorithm.
|
abstract void |
execute3(KahanObject kObj,
double in,
int count) |
boolean |
requiresCorrection() |
public abstract void execute2(KahanObject kObj, double in)
kObj - A KahanObject containing the current sum and
correction factor for the Kahan summation
algorithm.in - The current term to be added.public abstract void execute3(KahanObject kObj, double in, int count)
public final boolean requiresCorrection()
requiresCorrection in class ValueFunctionCopyright © 2020 The Apache Software Foundation. All rights reserved.