public interface DistanceFunction<T>
A function that calculates the distance between two points. For the purposes of vp-trees, distance functions must conform to the rules of a metric space, namely:
Modifier and Type | Method and Description |
---|---|
double |
getDistance(T firstPoint,
T secondPoint)
Returns the distance between two points.
|
Copyright © 2015-2016. All Rights Reserved.