![]() |
nanoflann
C++ header-only ANN library
|
#include <nanoflann.hpp>
Public Types | |
using | DistanceType = _DistanceType |
using | IndexType = _IndexType |
using | CountType = _CountType |
Public Member Functions | |
KNNResultSet (CountType capacity_) | |
void | init (IndexType *indices_, DistanceType *dists_) |
CountType | size () const |
bool | empty () const |
bool | full () const |
bool | addPoint (DistanceType dist, IndexType index) |
DistanceType | worstDist () const |
Result set for KNN searches (N-closest neighbors)
|
inline |
Called during search to add an element matching the criteria.
If defined and two points have the same distance, the one with the lowest-index will be returned first.