Template Class KNNResultSet
Defined in File nanoflann.hpp
Class Documentation
-
template<typename _DistanceType, typename _IndexType = size_t, typename _CountType = size_t>
class KNNResultSet Result set for KNN searches (N-closest neighbors)
Public Types
-
using DistanceType = _DistanceType
-
using IndexType = _IndexType
-
using CountType = _CountType
Public Functions
-
inline void init(IndexType *indices_, DistanceType *dists_)
-
inline bool empty() const
-
inline bool full() const
-
inline bool addPoint(DistanceType dist, IndexType index)
Called during search to add an element matching the criteria.
- Returns:
true if the search should be continued, false if the results are sufficient
-
inline DistanceType worstDist() const
-
using DistanceType = _DistanceType