Public Member Functions | |
unsigned int | get_nearest_neighbor (unsigned int i) const |
unsigned int | get_nearest_neighbor (const VectorD< D > &q) const |
Ints | get_nearest_neighbors (unsigned int i, unsigned int k) const |
NearestNeighborD (const std::vector< VectorD< D > > &vs, double epsilon=0) |
unsigned int IMP::algebra::NearestNeighborD< D >::get_nearest_neighbor | ( | unsigned int | i | ) | const |
Search using the ith point in the input set.
Ints IMP::algebra::NearestNeighborD< D >::get_nearest_neighbors | ( | unsigned int | i, | |
unsigned int | k | |||
) | const |
Search using the ith point in the input set. Return the k nearest neighbors.