Package ubic.basecode.math
Class MatrixRowStats
java.lang.Object
ubic.basecode.math.MatrixRowStats
Convenience functions for getting row statistics from matrices.
- Author:
- Paul Pavlidis
-
Method Summary
Modifier and TypeMethodDescriptionstatic DoubleMatrix1D
Calculate the means of a matrix's rowsstatic <R,
C> DoubleArrayList means
(DoubleMatrix<R, C> M) Calculates the means of a matrix's rows.static <R,
C> DoubleArrayList sampleStandardDeviations
(DoubleMatrix<R, C> M) Calculates the sample standard deviation of each row of a matrixstatic <R,
C> DoubleArrayList sumOfSquares
(DoubleMatrix<R, C> M) Calculates the sum of squares for each row of a matrixstatic <R,
C> DoubleArrayList sums
(DoubleMatrix<R, C> M) Calculate the sums of a matrix's rows.
-
Method Details
-
means
Calculates the means of a matrix's rows.- Parameters:
M
- DoubleMatrixNamed- Returns:
- DoubleArrayList
-
means
Calculate the means of a matrix's rows- Parameters:
e
- matrix. Missing values are ignored.- Returns:
- vector of length equal to number of e's rows
-
sampleStandardDeviations
Calculates the sample standard deviation of each row of a matrix- Parameters:
M
- DoubleMatrixNamed- Returns:
- DoubleArrayList
-
sumOfSquares
Calculates the sum of squares for each row of a matrix- Parameters:
M
- DoubleMatrixNamed- Returns:
- DoubleArrayList
-
sums
Calculate the sums of a matrix's rows.- Parameters:
M
- DoubleMatrixNamed- Returns:
- DoubleArrayList
-