|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectbaseCode.math.Distance
Alternative distance and similarity metrics for vectors.
Copyright (c) 2004
Institution:: Columbia University
| Constructor Summary | |
Distance()
|
|
| Method Summary | |
static double |
correlationOfStandardized(double[] xe,
double[] ye)
Highly optimized implementation of the Pearson correlation. |
static double |
correlationOfStandardized(cern.colt.list.DoubleArrayList x,
cern.colt.list.DoubleArrayList y)
Like correlationofNormedFast, but takes DoubleArrayLists as inputs, handles missing values correctly, and does more error checking. |
double |
euclDistance(cern.colt.list.DoubleArrayList x,
cern.colt.list.DoubleArrayList y)
Calculate the Euclidean distance between two vectors. |
double |
manhattanDistance(cern.colt.list.DoubleArrayList x,
cern.colt.list.DoubleArrayList y)
Calculate the Manhattan distance between two vectors. |
static double |
spearmanRankCorrelation(cern.colt.list.DoubleArrayList x,
cern.colt.list.DoubleArrayList y)
Spearman Rank Correlation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Distance()
| Method Detail |
public double manhattanDistance(cern.colt.list.DoubleArrayList x,
cern.colt.list.DoubleArrayList y)
x - DoubleArrayListy - DoubleArrayList
public double euclDistance(cern.colt.list.DoubleArrayList x,
cern.colt.list.DoubleArrayList y)
x - DoubleArrayListy - DoubleArrayList
public static double spearmanRankCorrelation(cern.colt.list.DoubleArrayList x,
cern.colt.list.DoubleArrayList y)
x - DoubleArrayListy - DoubleArrayList
public static double correlationOfStandardized(double[] xe,
double[] ye)
xe - A standardized vectorye - A standardized vector
public static double correlationOfStandardized(cern.colt.list.DoubleArrayList x,
cern.colt.list.DoubleArrayList y)
x - A standardized vectory - A standardized vector
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||