mlpack
master
|
MonoSearchVisitor executes a monochromatic range search on the given RSType. More...
Public Member Functions | |
MonoSearchVisitor (const math::Range &range, std::vector< std::vector< size_t >> &neighbors, std::vector< std::vector< double >> &distances) | |
Construct the MonoSearchVisitor with the given parameters. More... | |
template<typename RSType > | |
void | operator() (RSType *rs) const |
Perform monochromatic search with the given RangeSearch object. More... | |
Private Attributes | |
std::vector< std::vector< double > > & | distances |
Output distances. More... | |
std::vector< std::vector< size_t > > & | neighbors |
Output neighbors. More... | |
const math::Range & | range |
The range to search for. More... | |
MonoSearchVisitor executes a monochromatic range search on the given RSType.
Range Search is performed on the reference set itself, no querySet.
Definition at line 45 of file rs_model.hpp.
|
inline |
Construct the MonoSearchVisitor with the given parameters.
Definition at line 61 of file rs_model.hpp.
void mlpack::range::MonoSearchVisitor::operator() | ( | RSType * | rs | ) | const |
Perform monochromatic search with the given RangeSearch object.
|
private |
Output distances.
Definition at line 53 of file rs_model.hpp.
|
private |
Output neighbors.
Definition at line 51 of file rs_model.hpp.
|
private |
The range to search for.
Definition at line 49 of file rs_model.hpp.