public interface ThresholdSelectionStrategy<P,E extends P>
ThresholdSelectionStrategy
chooses the distance that will be used by a vp-tree node to partition its points.Modifier and Type | Method and Description |
---|---|
double |
selectThreshold(List<E> points,
P origin,
DistanceFunction<P> distanceFunction)
Chooses a partitioning distance threshold appropriate for the given list of points.
|
double selectThreshold(List<E> points, P origin, DistanceFunction<P> distanceFunction)
points
- the points for which to choose a partitioning distance thresholdorigin
- the point from which the threshold distances should be calculateddistanceFunction
- the function to be used to calculate distances between pointsCopyright © 2015-2016. All Rights Reserved.