Template Class NeighborsHeap
Defined in File DimRedTools.hpp
Class Documentation
-
template<typename T>
class NeighborsHeap A class for tracking k-nearest neighbors. Implemented as a min-heap with a limited size.
- Template Parameters
T – type of distance (usually double)
Public Functions
-
inline NeighborsHeap(size_t limit)
Constructor.
- Parameters
limit – the maximum heap size.
- Throws
std::invalid_argument – if the limit is less than or equal to zero.