|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.northwestern.at.utils.math.matrix.MatrixMeasure
public class MatrixMeasure
MatrixMeasure computes important measures associated with a matrix.
Constructor Summary | |
---|---|
protected |
MatrixMeasure()
Don't allow instantiation but do allow overrides. |
Method Summary | |
---|---|
static int |
breadth(Matrix matrix)
Breadth of matrix, e.g., the minimum dimension. |
static double |
condition(Matrix matrix)
Condition number of matrix. |
static double |
determinant(Matrix matrix)
Determinant of matrix. |
static int |
length(Matrix matrix)
Length of the matrix, e.g., the maximum dimension. |
static double |
max(Matrix matrix)
Maximum value in matrix. |
static double |
mean(Matrix matrix,
boolean adjustment)
Mean of all matrix values. |
static double |
min(Matrix matrix)
Minimum value in matrix. |
static double |
norm1(Matrix matrix)
1-norm -- maximum column sum. |
static double |
norm2(Matrix matrix)
2-norm -- maximum singular value. |
static double |
normFrobenius(Matrix matrix)
Frobenius norm -- square root of sum of squares of all entries. |
static double |
normInfinity(Matrix matrix)
Infinity norm -- maximum row sum. |
static double |
product(Matrix matrix)
Product of all matrix values. |
static int |
rank(Matrix matrix)
Rank of matrix. |
static double |
sum(Matrix matrix)
Sum of all matrix values. |
static double |
trace(Matrix matrix)
Trace of matrix. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected MatrixMeasure()
Method Detail |
---|
public static int breadth(Matrix matrix)
matrix
- The matrix.
public static double condition(Matrix matrix)
matrix
- Matrix.
public static double determinant(Matrix matrix)
matrix
- Matrix.
We compute the determinant from the LU decomposition of the matrix.
public static int length(Matrix matrix)
matrix
- Matrix.
public static double max(Matrix matrix)
matrix
- Matrix.
public static double mean(Matrix matrix, boolean adjustment)
matrix
- Matrix.adjustment
- True to divide by (n-1) instead of n, where
n is the number of values in the matrix.
public static double min(Matrix matrix)
matrix
- Matrix.
public static double norm1(Matrix matrix)
matrix
- Matrix.
public static double norm2(Matrix matrix)
matrix
- Matrix.
public static double normInfinity(Matrix matrix)
matrix
- Matrix.
public static double normFrobenius(Matrix matrix)
matrix
- Matrix.
public static double product(Matrix matrix)
matrix
- Matrix.
public static int rank(Matrix matrix)
matrix
- Matrix.
The rank is computed from the Singular Value Decomposition.
public static double sum(Matrix matrix)
matrix
- Matrix.
public static double trace(Matrix matrix)
matrix
- Matrix.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |