public class CorrelationDistance extends java.lang.Object implements Distance<double[]>, java.io.Serializable
| Constructor and Description |
|---|
CorrelationDistance()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
d(double[] x,
double[] y)
Pearson correlation distance between the two arrays of type double.
|
static double |
kendall(double[] x,
double[] y)
Kendall rank correlation distance between the two arrays of type double.
|
static double |
kendall(float[] x,
float[] y)
Kendall rank correlation distance between the two arrays of type float.
|
static double |
kendall(int[] x,
int[] y)
Kendall rank correlation distance between the two arrays of type int.
|
static double |
pearson(double[] x,
double[] y)
Pearson correlation distance between the two arrays of type double.
|
static double |
pearson(float[] x,
float[] y)
Pearson correlation distance between the two arrays of type float.
|
static double |
pearson(int[] x,
int[] y)
Pearson correlation distance between the two arrays of type int.
|
static double |
spearman(double[] x,
double[] y)
Spearman correlation distance between the two arrays of type double.
|
static double |
spearman(float[] x,
float[] y)
Spearman correlation distance between the two arrays of type float.
|
static double |
spearman(int[] x,
int[] y)
Spearman correlation distance between the two arrays of type int.
|
java.lang.String |
toString() |
public java.lang.String toString()
toString in class java.lang.Objectpublic double d(double[] x,
double[] y)
public static double pearson(int[] x,
int[] y)
public static double pearson(float[] x,
float[] y)
public static double pearson(double[] x,
double[] y)
public static double spearman(int[] x,
int[] y)
public static double spearman(float[] x,
float[] y)
public static double spearman(double[] x,
double[] y)
public static double kendall(int[] x,
int[] y)
public static double kendall(float[] x,
float[] y)
public static double kendall(double[] x,
double[] y)