mlpack
master
|
MonoSearchVisitor executes a monochromatic neighbor search on the given NSType. More...
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... | |
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.
|
inline |
Construct the MonoSearchVisitor object with the given parameters.
Definition at line 82 of file ns_model.hpp.
void mlpack::neighbor::MonoSearchVisitor::operator() | ( | NSType * | ns | ) | const |
Perform monochromatic nearest neighbor search.
|
private |
Result matrix for distances.
Definition at line 74 of file ns_model.hpp.
|
private |
Number of neighbors to search for.
Definition at line 70 of file ns_model.hpp.
|
private |
Result matrix for neighbors.
Definition at line 72 of file ns_model.hpp.