public class PearsonCorrelationDistanceMetric extends DistanceMetric<double>
|Constructor and Description|
Creates a new distance based on the Pearson correlation.
|Modifier and Type||Method and Description|
Returns the distance according to the metric of the two supplied objects.
public PearsonCorrelationDistanceMetric(boolean abs)
true, the distance is computed as , otherwise as .
public double getDistance(double o1, double o2) throws Exception