A result-set class used when performing a radius based search.
Definition at line 128 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 135 of file nanoflann.hpp.
References nanoflann::KNNResultSet< DistanceType, IndexType, CountType >::init().
|
inline |
Definition at line 140 of file nanoflann.hpp.
|
inline |
Definition at line 149 of file nanoflann.hpp.
|
inline |
Definition at line 143 of file nanoflann.hpp.
References nanoflann::RadiusResultSet< DistanceType, IndexType >::clear().
Referenced by nanoflann::RadiusResultSet< DistanceType, IndexType >::clear().
|
inline |
Definition at line 147 of file nanoflann.hpp.
|
inline |
Definition at line 142 of file nanoflann.hpp.
|
inline |
Clears the result set and adjusts the search radius.
Definition at line 158 of file nanoflann.hpp.
|
inline |
Definition at line 145 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 168 of file nanoflann.hpp.
References const_iterator.
|
inline |
Definition at line 155 of file nanoflann.hpp.
std::vector<std::pair<IndexType,DistanceType> >& nanoflann::RadiusResultSet< DistanceType, IndexType >::m_indices_dists |
Definition at line 133 of file nanoflann.hpp.
const DistanceType nanoflann::RadiusResultSet< DistanceType, IndexType >::radius |
Definition at line 131 of file nanoflann.hpp.
Page generated by Doxygen 1.8.16 for MRPT 1.4.0 SVN: at Mon Oct 14 22:32:58 UTC 2019 |