mlpack
Classes | Public Member Functions | List of all members
mlpack::tree::RectangleTree< MetricType, StatisticType, MatType, SplitType, DescentType, AuxiliaryInformationType >::SingleTreeTraverser< RuleType > Class Template Reference

A single traverser for rectangle type trees. More...

#include <rectangle_tree.hpp>

Public Member Functions

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

Detailed Description

template<typename MetricType = metric::EuclideanDistance, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename SplitType = RTreeSplit, typename DescentType = RTreeDescentHeuristic, template< typename > class AuxiliaryInformationType = NoAuxiliaryInformation>
template<typename RuleType>
class mlpack::tree::RectangleTree< MetricType, StatisticType, MatType, SplitType, DescentType, AuxiliaryInformationType >::SingleTreeTraverser< RuleType >

A single traverser for rectangle type trees.

See single_tree_traverser.hpp for implementation.

Member Function Documentation

◆ Traverse()

template<typename MetricType , typename StatisticType , typename MatType , typename SplitType , typename DescentType , template< typename > class AuxiliaryInformationType>
template<typename RuleType >
void mlpack::tree::RectangleTree< MetricType, StatisticType, MatType, SplitType, DescentType, AuxiliaryInformationType >::SingleTreeTraverser< RuleType >::Traverse ( const size_t  queryIndex,
const RectangleTree referenceNode 
)

Traverse the tree with the given point.

Parameters
queryIndexThe index of the point in the query set which is being used as the query point.
referenceNodeThe tree node to be traversed.

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