BiSearchVisitor Class Reference

BiSearchVisitor executes a bichromatic range search on the given RSType. More...

Inheritance diagram for BiSearchVisitor:

Public Types

template
<
template
<
typename
TreeMetricType
,
typename
TreeStatType
,
typename
TreeMatType
>
class
TreeType
>
using RSTypeT = RSType< TreeType >
 Alias template necessary for visual c++ compiler. More...

 

Public Member Functions

 BiSearchVisitor (const arma::mat &querySet, const math::Range &range, std::vector< std::vector< size_t >> &neighbors, std::vector< std::vector< double >> &distances, const size_t leafSize)
 Construct the BiSearchVisitor. More...

 
template
<
template
<
typename
TreeMetricType
,
typename
TreeStatType
,
typename
TreeMatType
>
class
TreeType
>
void operator() (RSTypeT< TreeType > *rs) const
 Default Bichromatic range search on the given RSType instance. More...

 
void operator() (RSTypeT< tree::KDTree > *rs) const
 Bichromatic range search on the given RSType specialized for KDTrees. More...

 
void operator() (RSTypeT< tree::BallTree > *rs) const
 Bichromatic range search on the given RSType specialized for BallTrees. More...

 
void operator() (RSTypeT< tree::Octree > *rs) const
 Bichromatic range search specialized for octrees. More...

 

Detailed Description

BiSearchVisitor executes a bichromatic range search on the given RSType.

We use template specialization to differentiate those tree types that accept leafSize as a parameter. In these cases, before doing range search, a query tree with proper leafSize is built from the querySet.

Definition at line 71 of file rs_model.hpp.

Member Typedef Documentation

◆ RSTypeT

using RSTypeT = RSType<TreeType>

Alias template necessary for visual c++ compiler.

Definition at line 94 of file rs_model.hpp.

Constructor & Destructor Documentation

◆ BiSearchVisitor()

BiSearchVisitor ( const arma::mat &  querySet,
const math::Range range,
std::vector< std::vector< size_t >> &  neighbors,
std::vector< std::vector< double >> &  distances,
const size_t  leafSize 
)

Construct the BiSearchVisitor.

Member Function Documentation

◆ operator()() [1/4]

void operator() ( RSTypeT< TreeType > *  rs) const

Default Bichromatic range search on the given RSType instance.

◆ operator()() [2/4]

void operator() ( RSTypeT< tree::KDTree > *  rs) const

Bichromatic range search on the given RSType specialized for KDTrees.

◆ operator()() [3/4]

void operator() ( RSTypeT< tree::BallTree > *  rs) const

Bichromatic range search on the given RSType specialized for BallTrees.

◆ operator()() [4/4]

void operator() ( RSTypeT< tree::Octree > *  rs) const

Bichromatic range search specialized for octrees.


The documentation for this class was generated from the following file:
  • /home/jenkins-mlpack/mlpack.org/_src/mlpack-3.2.1/src/mlpack/methods/range_search/rs_model.hpp