Class KahanFunction
- java.lang.Object
- 
- org.apache.sysds.runtime.functionobjects.FunctionObject
- 
- org.apache.sysds.runtime.functionobjects.ValueFunction
- 
- org.apache.sysds.runtime.functionobjects.KahanFunction
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 - Direct Known Subclasses:
- KahanPlus,- KahanPlusSq
 
 public abstract class KahanFunction extends ValueFunction Runtime function type to perform the summation of values using the Kahan summation algorithm.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description KahanFunction()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidexecute2(KahanObject kObj, double in)Add the given term to the existing sum with a function applied using the Kahan summation algorithm.abstract voidexecute3(KahanObject kObj, double in, int count)booleanrequiresCorrection()
 
- 
- 
- 
Method Detail- 
execute2public abstract void execute2(KahanObject kObj, double in) Add the given term to the existing sum with a function applied using the Kahan summation algorithm.- Parameters:
- kObj- A KahanObject containing the current sum and correction factor for the Kahan summation algorithm.
- in- The current term to be added.
 
 - 
execute3public abstract void execute3(KahanObject kObj, double in, int count) 
 - 
requiresCorrectionpublic final boolean requiresCorrection() - Overrides:
- requiresCorrectionin class- ValueFunction
 
 
- 
 
-