public class MatrixUtils
extends java.lang.Object
| Constructor and Description |
|---|
MatrixUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
columnNormalize(MCLMatrix matrix)
Column-normalizes a Matrix to 1.
|
static double |
getTotalAbsoluteChange(MCLMatrix matrixA,
MCLMatrix matrixB)
Get the total absolute change in values between two Matrices A and B.
|
static double |
getTotalPercentageChange(MCLMatrix matrixA,
MCLMatrix matrixB)
Get the total percentage change in values between two Matrices A and B.
|
static void |
prune(MCLMatrix matrix,
double minThreshold)
Prunes a matrix by setting the values of the matrix to 0 if they're lower
than the minimal value threshold.
|
public static double getTotalAbsoluteChange(MCLMatrix matrixA, MCLMatrix matrixB)
matrixA - Matrix AmatrixB - Matrix Bpublic static double getTotalPercentageChange(MCLMatrix matrixA, MCLMatrix matrixB)
matrixA - Matrix AmatrixB - Matrix Bpublic static void columnNormalize(MCLMatrix matrix)
matrix - The matrix to normalizepublic static void prune(MCLMatrix matrix, double minThreshold)
matrix - The matrix to pruneminThreshold - The pruning threshold