mlpack  master
Public Member Functions | Private Attributes | List of all members
mlpack::range::MonoSearchVisitor Class Reference

MonoSearchVisitor executes a monochromatic range search on the given RSType. More...

Inheritance diagram for mlpack::range::MonoSearchVisitor:
Inheritance graph
[legend]

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::Rangerange
 The range to search for. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

mlpack::range::MonoSearchVisitor::MonoSearchVisitor ( const math::Range range,
std::vector< std::vector< size_t >> &  neighbors,
std::vector< std::vector< double >> &  distances 
)
inline

Construct the MonoSearchVisitor with the given parameters.

Definition at line 61 of file rs_model.hpp.

Member Function Documentation

template<typename RSType >
void mlpack::range::MonoSearchVisitor::operator() ( RSType rs) const

Perform monochromatic search with the given RangeSearch object.

Member Data Documentation

std::vector<std::vector<double> >& mlpack::range::MonoSearchVisitor::distances
private

Output distances.

Definition at line 53 of file rs_model.hpp.

std::vector<std::vector<size_t> >& mlpack::range::MonoSearchVisitor::neighbors
private

Output neighbors.

Definition at line 51 of file rs_model.hpp.

const math::Range& mlpack::range::MonoSearchVisitor::range
private

The range to search for.

Definition at line 49 of file rs_model.hpp.


The documentation for this class was generated from the following file: