Module datarush.analytics
Interface NearnessMeasure.Measurer
- Enclosing class:
- NearnessMeasure
public static interface NearnessMeasure.Measurer
A calculator of "nearness".
-
Method Summary
Modifier and TypeMethodDescriptiondoubleCalculates the "nearness" of the two points.
-
Method Details
-
measureNearness
Calculates the "nearness" of the two points. The returned value should be non-negative, with smaller values indicating the points are "nearer". A value of zero indicates "identical" points.As long as distance ordering is preserved, it is not necessary to return a true distance. If a true distance is required, the
NearnessMeasure.nearnessToDistance(double)method will be used to convert.- Parameters:
pt1- one point in the measurementpt2- the other point in the measurement- Returns:
- the "nearness" of the points
-