Catalano.Statistics
Class Correlations
- java.lang.Object
-
- Catalano.Statistics.Correlations
-
public final class Correlations extends java.lang.ObjectUsed to compare two vectors in feature space by finding the similarity between the two.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doublePearsonCorrelation(double[] x, double[] y)static doublePearsonCorrelation(double[] x, double[] y, double meanX, double meanY)static doubleSpearmanCorrelation(double[] x, double[] y)static doubleTanimoto(double[] p, double[] q)Takes on values between 0 and 1; 1 for identical vectorsstatic doubleVectorInnerProduct(double[] p, double[] q)Inner Product
-
-
-
Method Detail
-
VectorInnerProduct
public static double VectorInnerProduct(double[] p, double[] q)Inner Product- Parameters:
p- Vector 1q- Vector 2- Returns:
- Inner Product
-
Tanimoto
public static double Tanimoto(double[] p, double[] q)Takes on values between 0 and 1; 1 for identical vectors- Parameters:
p- Vector 1q- Vector 2- Returns:
- Tanimoto metric
-
PearsonCorrelation
public static double PearsonCorrelation(double[] x, double[] y)
-
PearsonCorrelation
public static double PearsonCorrelation(double[] x, double[] y, double meanX, double meanY)
-
SpearmanCorrelation
public static double SpearmanCorrelation(double[] x, double[] y)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG