![]() |
nanoflann
C++ header-only ANN library
|
#include <nanoflann.hpp>
Public Types | |
| using | DistanceType = _DistanceType |
| using | IndexType = _IndexType |
Public Member Functions | |
| RadiusResultSet (DistanceType radius_, std::vector< ResultItem< IndexType, DistanceType > > &indices_dists) | |
| void | init () |
| void | clear () |
| size_t | size () const noexcept |
| bool | empty () const noexcept |
| bool | full () const noexcept |
| bool | addPoint (DistanceType dist, IndexType index) |
| DistanceType | worstDist () const noexcept |
| ResultItem< IndexType, DistanceType > | worst_item () const |
| void | sort () |
Public Attributes | |
| const DistanceType | radius |
| std::vector< ResultItem< 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 (farthest neighbor) without copying or sorting Pre-conditions: size() > 0