#include <nanoflann.hpp>
Public Member Functions | |
RadiusResultSet (DistanceType radius_, std::vector< std::pair< IndexType, DistanceType > > &indices_dists) | |
void | init () |
void | clear () |
size_t | size () const |
bool | full () const |
bool | addPoint (DistanceType dist, IndexType index) |
DistanceType | worstDist () const |
std::pair< IndexType, DistanceType > | worst_item () const |
Public Attributes | |
const DistanceType | radius |
std::vector< std::pair < IndexType, DistanceType > > & | m_indices_dists |
A result-set class used when performing a radius based search.
|
inline |
Called during search to add an element matching the criteria.
|
inline |
Find the worst result (furtherest neighbor) without copying or sorting Pre-conditions: size() > 0