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

MonoSearchVisitor executes a monochromatic neighbor search on the given NSType. More...

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

Public Member Functions

 MonoSearchVisitor (const size_t k, arma::Mat< size_t > &neighbors, arma::mat &distances)
 Construct the MonoSearchVisitor object with the given parameters. More...
 
template<typename NSType >
void operator() (NSType *ns) const
 Perform monochromatic nearest neighbor search. More...
 

Private Attributes

arma::mat & distances
 Result matrix for distances. More...
 
const size_t k
 Number of neighbors to search for. More...
 
arma::Mat< size_t > & neighbors
 Result matrix for neighbors. More...
 

Detailed Description

MonoSearchVisitor executes a monochromatic neighbor search on the given NSType.

We don't make any difference for different instantiations of NSType.

Definition at line 66 of file ns_model.hpp.

Constructor & Destructor Documentation

mlpack::neighbor::MonoSearchVisitor::MonoSearchVisitor ( const size_t  k,
arma::Mat< size_t > &  neighbors,
arma::mat &  distances 
)
inline

Construct the MonoSearchVisitor object with the given parameters.

Definition at line 82 of file ns_model.hpp.

Member Function Documentation

template<typename NSType >
void mlpack::neighbor::MonoSearchVisitor::operator() ( NSType ns) const

Perform monochromatic nearest neighbor search.

Member Data Documentation

arma::mat& mlpack::neighbor::MonoSearchVisitor::distances
private

Result matrix for distances.

Definition at line 74 of file ns_model.hpp.

const size_t mlpack::neighbor::MonoSearchVisitor::k
private

Number of neighbors to search for.

Definition at line 70 of file ns_model.hpp.

arma::Mat<size_t>& mlpack::neighbor::MonoSearchVisitor::neighbors
private

Result matrix for neighbors.

Definition at line 72 of file ns_model.hpp.


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