public class MedianDistanceThresholdSelectionStrategy<P,E extends P> extends Object implements ThresholdSelectionStrategy<P,E>
Constructor and Description |
---|
MedianDistanceThresholdSelectionStrategy() |
Modifier and Type | Method and Description |
---|---|
double |
selectThreshold(List<E> points,
P origin,
DistanceFunction<P> distanceFunction)
Returns the median distance of the given points from the given origin.
|
public MedianDistanceThresholdSelectionStrategy()
public double selectThreshold(List<E> points, P origin, DistanceFunction<P> distanceFunction)
selectThreshold
in interface ThresholdSelectionStrategy<P,E extends P>
points
- the list of points from which a median distance will be chosenorigin
- the point from which distances to other points will be calculateddistanceFunction
- the function to be used to calculate the distance between the origin and other pointsIllegalArgumentException
- if the given list of points is emptyCopyright © 2015-2016. All Rights Reserved.