edu.stanford.math.plex4.metric.interfaces
T
- the type of the points in the metric spacepublic interface AbstractSearchableMetricSpace<T> extends AbstractObjectMetricSpace<T>
Modifier and Type | Method and Description |
---|---|
gnu.trove.TIntHashSet |
getClosedNeighborhood(T queryPoint,
double epsilon)
This function returns the set of indices of points that are contained in the closed ball
of radius epsilon, centered at the specified query point.
|
gnu.trove.TIntHashSet |
getKNearestNeighbors(T queryPoint,
int k)
This function returns the indices of the k points that are closest to the given query point.
|
int |
getNearestPointIndex(T queryPoint)
This function returns the index of the point within the metric space nearest to
the given query point.
|
gnu.trove.TIntHashSet |
getOpenNeighborhood(T queryPoint,
double epsilon)
This function returns the set of indices of points that are contained in the open ball
of radius epsilon, centered at the specified query point.
|
getPoint, getPoints
distance, size
distance
int getNearestPointIndex(T queryPoint)
queryPoint
- the query pointgnu.trove.TIntHashSet getOpenNeighborhood(T queryPoint, double epsilon)
queryPoint
- the center of the open ballepsilon
- the radius of the open ballgnu.trove.TIntHashSet getClosedNeighborhood(T queryPoint, double epsilon)
queryPoint
- the center of the closed ballepsilon
- the radius of the closed ballgnu.trove.TIntHashSet getKNearestNeighbors(T queryPoint, int k)
queryPoint
- the reference pointk
- the number of nearest neighbors to get