|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectcommonSense.math.linear.SpecialMatrices
This class is the home of several special type matrices.
All methods are implemented as class methods and return a
Matrix which can be accessed through
the methods associated with that.
| Field Summary |
| Fields inherited from interface commonSense.stat.VarianceTypes |
POPULATION, SAMPLE |
| Method Summary | |
static Matrix |
correl(Matrix a)
Calculates the correlation matrix based on a pre-computed covariance matrix of any type. |
static Matrix |
correl(Matrix a,
int type)
Calculates the correlation matrix based on the input matrix. |
static Matrix |
covar(Matrix a)
Calculates the standard sample (co-)variance matrix in with n = N - 1 in which N is the number of rows in the matrix. |
static Matrix |
covar(Matrix a,
int type)
Calculates the covariance matrix of the specified type. |
static Matrix |
differenceByColumnMeans(Matrix a)
Gives the difference matrix with the means calculated by Columns. |
static Matrix |
differenceByRowMeans(Matrix a)
Gives the difference matrix with the means calculated by row. |
static Matrix |
SSCP(Matrix a)
Calculates a SSCP (Sum-of-Squares-Cross-Product) matrix. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Matrix SSCP(Matrix a)
a - The Matrix of which the SSCP should be
calculated
public static Matrix differenceByColumnMeans(Matrix a)
a - The matrix of which the means should be
calculated.
public static Matrix differenceByRowMeans(Matrix a)
a - The matrix of which the means should be calculated.
public static Matrix covar(Matrix a,
int type)
type is
VarianceTypes.SAMPLE it calculates the standard bias free
(co-)variance matrix with corresponds with n = N - 1 in which N is the
number of rows in the matrix. When the type is
VarianceTypes.POPULATION, N is left unchanged
(n = N). In general, the number provided for type
is subtracted equivalent to n = N - type.
a - The matrix of which the covariance matrix should be calculated.type - The type of variance that should be calculated, be it
sample or population (co-)variances.
VarianceTypes,
covar(Matrix)public static Matrix covar(Matrix a)
n = N - 1 in which N is the number of rows in the matrix.
a - The matrix of which the covariance matrix should be calculated.
VarianceTypes,
covar(Matrix, int)
public static Matrix correl(Matrix a,
int type)
type is
VarianceTypes.SAMPLE it calculates the standard bias free
(co-)variance matrix with corresponds with n = N - 1 in which N is the
number of rows in the matrix. When the type is
VarianceTypes.POPULATION, N is left unchanged
(n = N). In general, the number provided for type
is subtracted equivalent to n = N - type.
a - The matrix of which the correlation should be calculated.type - The type of variance that should be calculated, be it
sample or population (co-)variances.
VarianceTypes,
covar(Matrix),
covar(Matrix, int)public static Matrix correl(Matrix a)
a - The (co-)variance matrix of which the correlation matrix should be calculated.
covar(Matrix),
covar(Matrix, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||