public final class Distance
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static double |
ArithmeticGeometricDivergence(double[] p,
double[] q) |
static double |
Bhattacharyya(double[] histogram1,
double[] histogram2)
Bhattacharyya distance between two normalized histograms.
|
static double |
BrayCurtis(double[] p,
double[] q)
Gets the Bray Curtis distance between two points.
|
static double |
BrayCurtis(double x1,
double y1,
double x2,
double y2)
Gets the Bray Curtis distance between two points.
|
static double |
BrayCurtis(IntPoint p,
IntPoint q)
Gets the Bray Curtis distance between two points.
|
static double |
Canberra(double[] p,
double[] q)
Gets the Canberra distance between two points.
|
static double |
Canberra(double x1,
double y1,
double x2,
double y2)
Gets the Canberra distance between two points.
|
static double |
Canberra(IntPoint p,
IntPoint q)
Gets the Canberra distance between two points.
|
static double |
Chebyshev(double[] p,
double[] q)
Gets the Chebyshev distance between two points.
|
static double |
Chebyshev(double x1,
double y1,
double x2,
double y2)
Gets the Chebyshev distance between two points.
|
static double |
Chebyshev(IntPoint p,
IntPoint q)
Gets the Chebyshev distance between two points.
|
static double |
Chessboard(double[] x,
double[] y)
Gets the Chessboard distance between two points.
|
static double |
Chessboard(double x1,
double y1,
double x2,
double y2)
Gets the Chessboard distance between two points.
|
static double |
Chessboard(IntPoint p,
IntPoint q)
Gets the Chessboard distance between two points.
|
static double |
ChiSquare(double[] histogram1,
double[] histogram2)
Gets the Chi Square distance between two normalized histograms.
|
static double |
Correlation(double[] p,
double[] q)
Gets the Correlation distance between two points.
|
static double |
Cosine(double[] p,
double[] q)
Gets the Cosine distance between two points.
|
static double |
Cosine(double x1,
double y1,
double x2,
double y2)
Gets the Cosine distance between two points.
|
static double |
Cosine(IntPoint p,
IntPoint q)
Gets the Cosine distance between two points.
|
static double |
Euclidean(double[] p,
double[] q)
Gets the Euclidean distance between two points.
|
static double |
Euclidean(double x1,
double y1,
double x2,
double y2)
Gets the Euclidean distance between two points.
|
static double |
Euclidean(IntPoint p,
IntPoint q)
Gets the Euclidean distance between two points.
|
static int |
Hamming(java.lang.String first,
java.lang.String second)
Gets the Hamming distance between two strings.
|
static double |
JaccardDistance(double[] p,
double[] q)
Gets the Jaccard distance between two points.
|
static double |
JDivergence(double[] p,
double[] q)
Gets the J-Divergence.
|
static double |
JensenDifferenceDivergence(double[] p,
double[] q)
Gets the Jensen difference divergence.
|
static double |
JensenShannonDivergence(double[] p,
double[] q)
Gets the Jensen Shannon divergence.
|
static double |
KDivergence(double[] p,
double[] q)
Gets the K-Divergence.
|
static double |
KullbackLeiblerDivergence(double[] p,
double[] q)
Gets the Kullback Leibler divergence.
|
static double |
KumarJohnsonDivergence(double[] p,
double[] q)
Gets the Kumar-Johnson divergence.
|
static double |
Mahalanobis(double[][] A,
double[][] B)
Gets the Mahalanobis distance.
|
static double |
Manhattan(double[] p,
double[] q)
Gets the Manhattan distance between two points.
|
static double |
Manhattan(double x1,
double y1,
double x2,
double y2)
Gets the Manhattan distance between two points.
|
static double |
Manhattan(IntPoint p,
IntPoint q)
Gets the Manhattan distance between two points.
|
static double |
Minkowski(double[] u,
double[] v,
double p)
Gets the Minkowski distance between two points.
|
static double |
Minkowski(double x1,
double y1,
double x2,
double y2,
int r)
Gets the Minkowski distance between two points.
|
static double |
Minkowski(IntPoint p,
IntPoint q,
int r)
Gets the Minkowski distance between two points.
|
static double |
QuasiEuclidean(double x1,
double y1,
double x2,
double y2)
Gets the Quasi-Euclidean distance between two points.
|
static double |
QuasiEuclidean(IntPoint p,
IntPoint q)
Gets the Quasi-Euclidean distance between two points.
|
static double |
SquaredEuclidean(double[] x,
double[] y)
Gets the Square Euclidean distance between two points.
|
static double |
SquaredEuclidean(double x1,
double y1,
double x2,
double y2)
Gets the Squared Euclidean distance between two points.
|
static double |
SquaredEuclidean(IntPoint p,
IntPoint q)
Gets the Squared Euclidean distance between two points.
|
static double |
SymmetricChiSquareDivergence(double[] p,
double[] q)
Gets the Symmetric Chi-square divergence.
|
static double |
Taneja(double[] p,
double[] q)
Gets the Taneja divergence.
|
static double |
TopsoeDivergence(double[] p,
double[] q)
Gets the Topsoe divergence.
|
public static double ArithmeticGeometricDivergence(double[] p,
double[] q)
public static double Bhattacharyya(double[] histogram1,
double[] histogram2)
histogram1 - Normalized histogram.histogram2 - Normalized histogram.public static double BrayCurtis(double[] p,
double[] q)
p - A point in space.q - A point in space.public static double BrayCurtis(double x1,
double y1,
double x2,
double y2)
x1 - X1 axis coordinate.y1 - Y1 axis coordinate.x2 - X2 axis coordinate.y2 - X2 axis coordinate.public static double BrayCurtis(IntPoint p, IntPoint q)
p - IntPoint with X and Y axis coordinates.q - IntPoint with X and Y axis coordinates.public static double Canberra(double[] p,
double[] q)
p - A point in space.q - A point in space.public static double Canberra(double x1,
double y1,
double x2,
double y2)
x1 - X1 axis coordinate.y1 - Y1 axis coordinate.x2 - X2 axis coordinate.y2 - Y2 axis coordinate.public static double Canberra(IntPoint p, IntPoint q)
p - IntPoint with X and Y axis coordinates.q - IntPoint with X and Y axis coordinates.public static double Chebyshev(double[] p,
double[] q)
p - A point in space.q - A point in space.public static double Chebyshev(double x1,
double y1,
double x2,
double y2)
x1 - X1 axis coordinate.y1 - Y1 axis coordinate.x2 - X2 axis coordinate.y2 - Y2 axis coordinate.public static double Chebyshev(IntPoint p, IntPoint q)
p - IntPoint with X and Y axis coordinates.q - IntPoint with X and Y axis coordinates.public static double Chessboard(double[] x,
double[] y)
x - A point in space.y - A point in space.public static double Chessboard(double x1,
double y1,
double x2,
double y2)
x1 - X1 axis coordinate.y1 - Y1 axis coordinate.x2 - X2 axis coordinate.y2 - Y2 axis coordinate.public static double Chessboard(IntPoint p, IntPoint q)
p - IntPoint with X and Y axis coordinates.q - IntPoint with X and Y axis coordinates.public static double ChiSquare(double[] histogram1,
double[] histogram2)
histogram1 - Histogram.histogram2 - Histogram.public static double Correlation(double[] p,
double[] q)
p - A point in space.q - A point in space.public static double Cosine(double[] p,
double[] q)
p - A point in space.q - A point in space.public static double Cosine(double x1,
double y1,
double x2,
double y2)
x1 - X1 axis coordinate.y1 - Y1 axis coordinate.x2 - X2 axis coordinate.y2 - Y2 axis coordinate.public static double Cosine(IntPoint p, IntPoint q)
p - IntPoint with X and Y axis coordinates.q - IntPoint with X and Y axis coordinates.public static double Euclidean(double[] p,
double[] q)
p - A point in space.q - A point in space.public static double Euclidean(double x1,
double y1,
double x2,
double y2)
x1 - X1 axis coordinate.y1 - Y1 axis coordinate.x2 - X2 axis coordinate.y2 - Y2 axis coordinate.public static double Euclidean(IntPoint p, IntPoint q)
p - IntPoint with X and Y axis coordinates.q - IntPoint with X and Y axis coordinates.public static int Hamming(java.lang.String first,
java.lang.String second)
first - First string.second - Second string.public static double JaccardDistance(double[] p,
double[] q)
p - A point in space.q - A point in space.public static double JDivergence(double[] p,
double[] q)
p - P vector.q - Q vector.public static double JensenDifferenceDivergence(double[] p,
double[] q)
p - P vector.q - Q vector.public static double JensenShannonDivergence(double[] p,
double[] q)
p - U vector.q - V vector.public static double KDivergence(double[] p,
double[] q)
p - U vector.q - V vector.public static double KumarJohnsonDivergence(double[] p,
double[] q)
p - P vector.q - Q vector.public static double KullbackLeiblerDivergence(double[] p,
double[] q)
p - P vector.q - Q vector.public static double Mahalanobis(double[][] A,
double[][] B)
A - Matrix A.B - Matrix B.public static double Manhattan(double[] p,
double[] q)
p - A point in space.q - A point in space.public static double Manhattan(double x1,
double y1,
double x2,
double y2)
x1 - X1 axis coordinate.y1 - Y1 axis coordinate.x2 - X2 axis coordinate.y2 - Y2 axis coordinate.public static double Manhattan(IntPoint p, IntPoint q)
p - IntPoint with X and Y axis coordinates.q - IntPoint with X and Y axis coordinates.public static double Minkowski(double x1,
double y1,
double x2,
double y2,
int r)
x1 - X1 axis coordinate.y1 - Y1 axis coordinate.x2 - X2 axis coordinate.y2 - Y2 axis coordinate.r - Order between two points.public static double Minkowski(IntPoint p, IntPoint q, int r)
p - IntPoint with X and Y axis coordinates.q - IntPoint with X and Y axis coordinates.r - Order between two points.public static double Minkowski(double[] u,
double[] v,
double p)
u - A point in space.v - A point in space.p - Order between two points.public static double QuasiEuclidean(double x1,
double y1,
double x2,
double y2)
x1 - X1 axis coordinates.y1 - Y1 axis coordinates.x2 - X2 axis coordinates.y2 - Y2 axis coordinates.public static double QuasiEuclidean(IntPoint p, IntPoint q)
p - IntPoint with X and Y axis coordinates.q - IntPoint with X and Y axis coordinates.public static double SquaredEuclidean(double[] x,
double[] y)
x - A point in space.y - A point in space.public static double SquaredEuclidean(double x1,
double y1,
double x2,
double y2)
x1 - X1 axis coordinates.y1 - Y1 axis coordinates.x2 - X2 axis coordinates.y2 - Y2 axis coordinates.public static double SquaredEuclidean(IntPoint p, IntPoint q)
p - IntPoint with X and Y axis coordinates.q - IntPoint with X and Y axis coordinates.public static double SymmetricChiSquareDivergence(double[] p,
double[] q)
p - P vector.q - Q vector.public static double Taneja(double[] p,
double[] q)
p - P vector.q - Q vector.public static double TopsoeDivergence(double[] p,
double[] q)
p - P vector.q - Q vector.