Class Mean
- java.lang.Object
-
- org.ujmp.core.calculation.AbstractCalculation
-
- org.ujmp.core.doublematrix.calculation.AbstractDoubleCalculation
-
- org.ujmp.core.doublematrix.calculation.general.statistical.Mean
-
- All Implemented Interfaces:
java.io.Serializable
,Calculation
,DoubleCalculation
public class Mean extends AbstractDoubleCalculation
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ujmp.core.calculation.Calculation
Calculation.Ret
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
ignoreNaN
private Matrix
missingCount
private static long
serialVersionUID
private Matrix
sum
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static double
calc(Matrix m)
double
getDouble(long... coordinates)
long[]
getSize()
-
Methods inherited from class org.ujmp.core.doublematrix.calculation.AbstractDoubleCalculation
calcLink, calcNew, calcOrig, getValueType, setDouble
-
Methods inherited from class org.ujmp.core.calculation.AbstractCalculation
availableCoordinates, calc, containsCoordinates, getColumnCount, getDimension, getMetaData, getRowCount, getSource, getSources, setMetaData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ujmp.core.calculation.Calculation
availableCoordinates, calc, containsCoordinates, getColumnCount, getDimension, getMetaData, getRowCount, getSource, getSources, setMetaData
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
sum
private Matrix sum
-
missingCount
private Matrix missingCount
-
ignoreNaN
private boolean ignoreNaN
-
-
Constructor Detail
-
Mean
public Mean(int dimension, boolean ignoreNaN, Matrix matrix)
-
-
Method Detail
-
getDouble
public double getDouble(long... coordinates)
-
getSize
public long[] getSize()
- Specified by:
getSize
in interfaceCalculation
- Overrides:
getSize
in classAbstractCalculation
-
calc
public static double calc(Matrix m)
-
-