Class SpearmanCorrelation
Object
org.apache.spark.mllib.stat.correlation.SpearmanCorrelation
Compute Spearman's correlation for two RDDs of the type RDD[Double] or the correlation matrix
for an RDD of the type RDD[Vector].
Definition of Spearman's correlation can be found at http://en.wikipedia.org/wiki/Spearman's_rank_correlation_coefficient
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
computeCorrelation
(RDD<Object> x, RDD<Object> y) Compute Spearman's correlation for two datasets.static Matrix
Compute Spearman's correlation matrix S, for the input matrix, where S(i, j) is the correlation between column i and j.static double
static org.slf4j.Logger
static void
org$apache$spark$internal$Logging$$log__$eq
(org.slf4j.Logger x$1)
-
Constructor Details
-
SpearmanCorrelation
public SpearmanCorrelation()
-
-
Method Details
-
computeCorrelation
Compute Spearman's correlation for two datasets.- Parameters:
x
- (undocumented)y
- (undocumented)- Returns:
- (undocumented)
-
computeCorrelationMatrix
Compute Spearman's correlation matrix S, for the input matrix, where S(i, j) is the correlation between column i and j.- Parameters:
X
- (undocumented)- Returns:
- (undocumented)
-
computeCorrelationWithMatrixImpl
-
org$apache$spark$internal$Logging$$log_
public static org.slf4j.Logger org$apache$spark$internal$Logging$$log_() -
org$apache$spark$internal$Logging$$log__$eq
public static void org$apache$spark$internal$Logging$$log__$eq(org.slf4j.Logger x$1)
-