Package smile.math.distance
Class CorrelationDistance
java.lang.Object
smile.math.distance.CorrelationDistance
- All Implemented Interfaces:
Serializable
,ToDoubleBiFunction<double[],
,double[]> Distance<double[]>
Correlation distance is defined as 1 - correlation coefficient.
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructor of Pearson correlation distance.CorrelationDistance
(String method) Constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface smile.math.distance.Distance
apply, applyAsDouble, D, D
-
Constructor Details
-
CorrelationDistance
public CorrelationDistance()Constructor of Pearson correlation distance. -
CorrelationDistance
Constructor.- Parameters:
method
- the type of correlation.
-
-
Method Details