mlpack
|
A generic single-tree traverser for hybrid spill trees; see spill_single_tree_traverser.hpp for implementation. More...
Public Member Functions | |
SpillSingleTreeTraverser (RuleType &rule) | |
Instantiate the single tree traverser with the given rule set. | |
void | Traverse (const size_t queryIndex, SpillTree &referenceNode, const bool bruteForce=false) |
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. | |
A generic single-tree traverser for hybrid spill trees; see spill_single_tree_traverser.hpp for implementation.
The Defeatist template parameter determines if the traverser must do defeatist search on overlapping nodes.
void mlpack::tree::SpillTree< MetricType, StatisticType, MatType, HyperplaneType, SplitType >::SpillSingleTreeTraverser< RuleType, Defeatist >::Traverse | ( | const size_t | queryIndex, |
SpillTree & | referenceNode, | ||
const bool | bruteForce = false |
||
) |
Traverse the tree with the given point.
queryIndex | The index of the point in the query set which is being used as the query point. |
referenceNode | The tree node to be traversed. |
bruteForce | If true, then do a brute-force search on the reference node instead of traversing any further. |