|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFeatureExtractor.Clustering.ClusteringDistance
FeatureExtractor.Clustering.Windsurf.Mahalanobis
public class Mahalanobis
Class implementing the computation of the Mahalanobis distance.
| Constructor Summary | |
|---|---|
Mahalanobis(ClusteringFeatures[][] data)
Basic constructor. |
|
| Method Summary | |
|---|---|
double |
distance(ClusteringFeatures p1,
ClusteringFeatures p2)
Computes the Mahalanobis distance between two points. |
boolean |
isSingular()
Indicates whether the covariance matrix is singular. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Mahalanobis(ClusteringFeatures[][] data)
data - Array of WindsurfClusteringFeatures used to compute the inverse covariance matrix.| Method Detail |
|---|
public boolean isSingular()
true if the covariance matrix is singular, false otherwise.
public double distance(ClusteringFeatures p1,
ClusteringFeatures p2)
distance in class ClusteringDistancep1 - Points to be compared.p2 - Points to be compared.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||