public class PearsonCorrelation
extends java.lang.Object
Definition of Pearson correlation can be found at http://en.wikipedia.org/wiki/Pearson_product-moment_correlation_coefficient
Constructor and Description |
---|
PearsonCorrelation() |
Modifier and Type | Method and Description |
---|---|
static double |
computeCorrelation(RDD<java.lang.Object> x,
RDD<java.lang.Object> y)
Compute the Pearson correlation for two datasets.
|
static Matrix |
computeCorrelationMatrix(RDD<Vector> X)
Compute the Pearson correlation matrix S, for the input matrix, where S(i, j) is the
correlation between column i and j.
|
static Matrix |
computeCorrelationMatrixFromCovariance(Matrix covarianceMatrix)
Compute the Pearson correlation matrix from the covariance matrix.
|
static double |
computeCorrelationWithMatrixImpl(RDD<java.lang.Object> x,
RDD<java.lang.Object> y) |
protected static void |
initializeLogIfNecessary(boolean isInterpreter) |
protected static boolean |
isTraceEnabled() |
protected static org.slf4j.Logger |
log() |
protected static void |
logDebug(scala.Function0<java.lang.String> msg) |
protected static void |
logDebug(scala.Function0<java.lang.String> msg,
java.lang.Throwable throwable) |
protected static void |
logError(scala.Function0<java.lang.String> msg) |
protected static void |
logError(scala.Function0<java.lang.String> msg,
java.lang.Throwable throwable) |
protected static void |
logInfo(scala.Function0<java.lang.String> msg) |
protected static void |
logInfo(scala.Function0<java.lang.String> msg,
java.lang.Throwable throwable) |
protected static java.lang.String |
logName() |
protected static void |
logTrace(scala.Function0<java.lang.String> msg) |
protected static void |
logTrace(scala.Function0<java.lang.String> msg,
java.lang.Throwable throwable) |
protected static void |
logWarning(scala.Function0<java.lang.String> msg) |
protected static void |
logWarning(scala.Function0<java.lang.String> msg,
java.lang.Throwable throwable) |
public static double computeCorrelation(RDD<java.lang.Object> x, RDD<java.lang.Object> y)
x
- (undocumented)y
- (undocumented)public static Matrix computeCorrelationMatrix(RDD<Vector> X)
X
- (undocumented)public static Matrix computeCorrelationMatrixFromCovariance(Matrix covarianceMatrix)
covarianceMatrix
- (undocumented)public static double computeCorrelationWithMatrixImpl(RDD<java.lang.Object> x, RDD<java.lang.Object> y)
protected static java.lang.String logName()
protected static org.slf4j.Logger log()
protected static void logInfo(scala.Function0<java.lang.String> msg)
protected static void logDebug(scala.Function0<java.lang.String> msg)
protected static void logTrace(scala.Function0<java.lang.String> msg)
protected static void logWarning(scala.Function0<java.lang.String> msg)
protected static void logError(scala.Function0<java.lang.String> msg)
protected static void logInfo(scala.Function0<java.lang.String> msg, java.lang.Throwable throwable)
protected static void logDebug(scala.Function0<java.lang.String> msg, java.lang.Throwable throwable)
protected static void logTrace(scala.Function0<java.lang.String> msg, java.lang.Throwable throwable)
protected static void logWarning(scala.Function0<java.lang.String> msg, java.lang.Throwable throwable)
protected static void logError(scala.Function0<java.lang.String> msg, java.lang.Throwable throwable)
protected static boolean isTraceEnabled()
protected static void initializeLogIfNecessary(boolean isInterpreter)