K
- the type of keys.V
- the type of associated objects.public interface NearestNeighborSearch<K,V>
In machine learning, we often build a nearest neighbor search data structure, and then search with object in the same dataset. The object itsef is of course the nearest one with distance 0. But this is meaningless and we therefore do the reference check during the search and excludes the query object from the results.
Modifier and Type | Method and Description |
---|---|
Neighbor<K,V> |
nearest(K q)
Search the nearest neighbor to the given sample.
|