mlpack  2.2.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
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 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 ( RuleType &  rule)

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

Member Function Documentation

size_t NumPrunes ( ) const
inline

Get the number of prunes.

Definition at line 41 of file greedy_single_tree_traverser.hpp.

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: