#include <result_set.h>
Public Member Functions | |
void | addPoint (DistanceType dist, size_t index) |
void | clear () |
KNNUniqueResultSet (unsigned int capacity) | |
Protected Types | |
typedef UniqueResultSet < DistanceType >::DistIndex | DistIndex |
Protected Attributes | |
unsigned int | capacity_ |
Class that holds the k NN neighbors Faster than KNNResultSet as it uses a binary heap and does not maintain two arrays
Definition at line 785 of file result_set.h.
typedef UniqueResultSet<DistanceType>::DistIndex rtflann::KNNUniqueResultSet< DistanceType >::DistIndex [protected] |
Definition at line 829 of file result_set.h.
rtflann::KNNUniqueResultSet< DistanceType >::KNNUniqueResultSet | ( | unsigned int | capacity | ) | [inline] |
Constructor
capacity | the number of neighbors to store at max |
Definition at line 791 of file result_set.h.
void rtflann::KNNUniqueResultSet< DistanceType >::addPoint | ( | DistanceType | dist, |
size_t | index | ||
) | [inline, virtual] |
Add a possible candidate to the best neighbors
dist | distance for that neighbor |
index | index of that neighbor |
Implements rtflann::ResultSet< DistanceType >.
Definition at line 801 of file result_set.h.
void rtflann::KNNUniqueResultSet< DistanceType >::clear | ( | ) | [inline] |
Remove all elements in the set
Reimplemented in rtflann::KNNRadiusUniqueResultSet< DistanceType >.
Definition at line 821 of file result_set.h.
unsigned int rtflann::KNNUniqueResultSet< DistanceType >::capacity_ [protected] |
The number of neighbors to keep
Definition at line 835 of file result_set.h.