mlpack
Public Member Functions | List of all members
mlpack::tree::Octree< MetricType, StatisticType, MatType >::SingleTreeTraverser< RuleType > Class Template Reference

A single-tree traverser; see single_tree_traverser.hpp. More...

#include <octree.hpp>

Public Member Functions

 SingleTreeTraverser (RuleType &rule)
 Instantiate the traverser with the given rule set.
 
void Traverse (const size_t queryIndex, Octree &referenceNode)
 Traverse the reference tree with the given query point. More...
 
size_t NumPrunes () const
 Get the number of pruned nodes.
 
size_t & NumPrunes ()
 Modify the number of pruned nodes.
 

Detailed Description

template<typename MetricType = metric::EuclideanDistance, typename StatisticType = EmptyStatistic, typename MatType = arma::mat>
template<typename RuleType>
class mlpack::tree::Octree< MetricType, StatisticType, MatType >::SingleTreeTraverser< RuleType >

A single-tree traverser; see single_tree_traverser.hpp.

Member Function Documentation

◆ Traverse()

template<typename MetricType , typename StatisticType , typename MatType >
template<typename RuleType >
void mlpack::tree::Octree< MetricType, StatisticType, MatType >::SingleTreeTraverser< RuleType >::Traverse ( const size_t  queryIndex,
Octree referenceNode 
)

Traverse the reference tree with the given query point.

This does not reset the number of pruned nodes.

Parameters
queryIndexIndex of query point.
referenceNodeNode in reference tree.

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