public class MatrixSummaryUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static double[] |
getColumnMedians(org.apache.commons.math3.linear.RealMatrix m)
Return an array containing the median for each column in the given matrix.
|
static double[] |
getRowMedians(org.apache.commons.math3.linear.RealMatrix m)
Return an array containing the median for each row in the given matrix.
|
static double[] |
getRowVariances(org.apache.commons.math3.linear.RealMatrix m)
Return an array containing the variance for each row in the given matrix.
|
public static double[] getColumnMedians(org.apache.commons.math3.linear.RealMatrix m)
m
- Not null
. Size MxN, where neither dimension is zero. If any entry is NaN, it is disregarded
in the calculation.null
public static double[] getRowMedians(org.apache.commons.math3.linear.RealMatrix m)
m
- Not null
. Size MxN. If any entry is NaN, it is disregarded
in the calculation.null
public static double[] getRowVariances(org.apache.commons.math3.linear.RealMatrix m)
m
- Not null
. Size MxN. If any entry is NaN, the corresponding rows will have a
variance of NaN.null
IF there is only one column (or only one entry