GreedySingleTreeTraverser< TreeType, RuleType > Class Template Reference

Public Member Functions

 GreedySingleTreeTraverser (RuleType &rule)
 Instantiate the greedy single tree traverser with the given rule set. More...

 
size_t & MinBaseCases ()
 Set value of minBaseCases. More...

 
size_t MinBaseCases () const
 Get value of minBaseCases. More...

 
size_t NumPrunes () const
 Get the number of prunes. More...

 
void Traverse (const size_t queryIndex, TreeType &referenceNode)
 Traverse the tree with the given point. More...

 

Detailed Description


template
<
typename
TreeType
,
typename
RuleType
>

class mlpack::tree::GreedySingleTreeTraverser< TreeType, RuleType >

Definition at line 23 of file greedy_single_tree_traverser.hpp.

Constructor & Destructor Documentation

◆ GreedySingleTreeTraverser()

GreedySingleTreeTraverser ( RuleType &  rule)

Instantiate the greedy single tree traverser with the given rule set.

Member Function Documentation

◆ MinBaseCases() [1/2]

size_t& MinBaseCases ( )
inline

Set value of minBaseCases.

Definition at line 44 of file greedy_single_tree_traverser.hpp.

◆ MinBaseCases() [2/2]

size_t MinBaseCases ( ) const
inline

Get value of minBaseCases.

Definition at line 47 of file greedy_single_tree_traverser.hpp.

◆ NumPrunes()

size_t NumPrunes ( ) const
inline

Get the number of prunes.

Definition at line 41 of file greedy_single_tree_traverser.hpp.

◆ Traverse()

void Traverse ( const size_t  queryIndex,
TreeType &  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 file: