A result-set class used when performing a radius based search.
Definition at line 129 of file nanoflann.hpp.
#include <mrpt/otherlibs/nanoflann/nanoflann.hpp>
Public Member Functions | |
RadiusResultSet (DistanceType radius_, std::vector< std::pair< IndexType, DistanceType > > &indices_dists) | |
~RadiusResultSet () | |
void | init () |
void | clear () |
size_t | size () const |
bool | full () const |
void | addPoint (DistanceType dist, IndexType index) |
DistanceType | worstDist () const |
void | set_radius_and_clear (const DistanceType r) |
Clears the result set and adjusts the search radius. More... | |
std::pair< IndexType, DistanceType > | worst_item () const |
Find the worst result (furtherest neighbor) without copying or sorting Pre-conditions: size() > 0. More... | |
Public Attributes | |
const DistanceType | radius |
std::vector< std::pair< IndexType, DistanceType > > & | m_indices_dists |
|
inline |
Definition at line 136 of file nanoflann.hpp.
References nanoflann::KNNResultSet< DistanceType, IndexType, CountType >::init().
|
inline |
Definition at line 141 of file nanoflann.hpp.
|
inline |
Definition at line 150 of file nanoflann.hpp.
|
inline |
Definition at line 144 of file nanoflann.hpp.
|
inline |
Definition at line 148 of file nanoflann.hpp.
|
inline |
Definition at line 143 of file nanoflann.hpp.
|
inline |
Clears the result set and adjusts the search radius.
Definition at line 159 of file nanoflann.hpp.
|
inline |
Definition at line 146 of file nanoflann.hpp.
Referenced by nanoflann::KDTreeSingleIndexAdaptor< Distance, DatasetAdaptor, DIM, IndexType >::radiusSearch().
|
inline |
Find the worst result (furtherest neighbor) without copying or sorting Pre-conditions: size() > 0.
Definition at line 169 of file nanoflann.hpp.
|
inline |
Definition at line 156 of file nanoflann.hpp.
std::vector<std::pair<IndexType,DistanceType> >& nanoflann::RadiusResultSet< DistanceType, IndexType >::m_indices_dists |
Definition at line 134 of file nanoflann.hpp.
const DistanceType nanoflann::RadiusResultSet< DistanceType, IndexType >::radius |
Definition at line 132 of file nanoflann.hpp.
Page generated by Doxygen 1.9.1 for MRPT 1.4.0 SVN: at Sat Jan 30 21:34:41 UTC 2021 |