Class CM_COV_Object
- java.lang.Object
-
- org.apache.sysds.runtime.instructions.cp.Data
-
- org.apache.sysds.runtime.instructions.cp.CM_COV_Object
-
- All Implemented Interfaces:
Serializable
public class CM_COV_Object extends Data
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description KahanObjectc2KahanObjectm2KahanObjectm3KahanObjectm4doublemaxKahanObjectmeanKahanObjectmean_vdoublemindoublew
-
Constructor Summary
Constructors Constructor Description CM_COV_Object()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(CM_COV_Object that)booleanequals(Object o)StringgetDebugName()doublegetRequiredPartialResult(Operator op)doublegetRequiredResult(CMOperator.AggregateOperationTypes agg)Return the result of the aggregated operation given the operation type.doublegetRequiredResult(Operator op)Return the result of the aggregated operation given the operator.doublegetWeight()inthashCode()booleanisCMAllZeros()booleanisCOVAllZeros()voidreset()voidset(CM_COV_Object that)StringtoString()-
Methods inherited from class org.apache.sysds.runtime.instructions.cp.Data
getDataType, getMetaData, getPrivacyConstraint, getValueType, removeMetaData, setMetaData, setPrivacyConstraints, updateDataCharacteristics
-
-
-
-
Field Detail
-
w
public double w
-
mean
public KahanObject mean
-
m2
public KahanObject m2
-
m3
public KahanObject m3
-
m4
public KahanObject m4
-
min
public double min
-
max
public double max
-
mean_v
public KahanObject mean_v
-
c2
public KahanObject c2
-
-
Method Detail
-
reset
public void reset()
-
compareTo
public int compareTo(CM_COV_Object that)
-
set
public void set(CM_COV_Object that)
-
isCMAllZeros
public boolean isCMAllZeros()
-
isCOVAllZeros
public boolean isCOVAllZeros()
-
getRequiredResult
public double getRequiredResult(Operator op)
Return the result of the aggregated operation given the operator.- Parameters:
op- operator- Returns:
- result of the aggregated operation for the given operator
-
getRequiredResult
public double getRequiredResult(CMOperator.AggregateOperationTypes agg)
Return the result of the aggregated operation given the operation type.- Parameters:
agg- aggregate operation type- Returns:
- result of the aggregated operation given the operation type
-
getRequiredPartialResult
public double getRequiredPartialResult(Operator op)
-
getWeight
public double getWeight()
-
getDebugName
public String getDebugName()
- Specified by:
getDebugNamein classData
-
-