|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object commonSense.math.linear.Distances
Method Summary | |
static double[] |
euclidean(Matrix a)
Calculates the euclidean distance of a sample, and returns the non-squared distance. |
static double[] |
mahalanobis(Matrix a)
Calculates the mahalanobis distance of a sample, and returns the non-squared distance. |
static double[] |
mahalanobis(Matrix a,
Matrix covar)
Calculates the mahalanobis distance of a sample, and returns the non-squared distance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static double[] mahalanobis(Matrix a, Matrix covar)
a
- The matrix of which the distances need to be
calculated.covar
- The covariance matrix of matrix 'a' to
avoid duplication of calculation efforts.public static double[] mahalanobis(Matrix a)
a
- The matrix of which the distances need to be
calculated.public static double[] euclidean(Matrix a)
a
- The matrix of which the distances need to be
calculated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |