|
mlpack
master
|
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. More... | |
| size_t | NumPrunes () const |
| Get the number of prunes. More... | |
| size_t & | NumPrunes () |
| Modify the number of prunes. More... | |
| void | Traverse (const size_t queryIndex, SpillTree &referenceNode) |
| Traverse the tree with the given point. More... | |
Private Attributes | |
| size_t | numPrunes |
| The number of nodes which have been pruned during traversal. More... | |
| RuleType & | rule |
| Reference to the rules with which the tree will be traversed. More... | |
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.
Definition at line 34 of file spill_single_tree_traverser.hpp.
| mlpack::tree::SpillTree< MetricType, StatisticType, MatType, HyperplaneType, SplitType >::SpillSingleTreeTraverser< MetricType, StatisticType, MatType, HyperplaneType, SplitType >::SpillSingleTreeTraverser | ( | RuleType & | rule | ) |
Instantiate the single tree traverser with the given rule set.
|
inline |
Get the number of prunes.
Definition at line 53 of file spill_single_tree_traverser.hpp.
|
inline |
Modify the number of prunes.
Definition at line 55 of file spill_single_tree_traverser.hpp.
| void mlpack::tree::SpillTree< MetricType, StatisticType, MatType, HyperplaneType, SplitType >::SpillSingleTreeTraverser< MetricType, StatisticType, MatType, HyperplaneType, SplitType >::Traverse | ( | const size_t | queryIndex, |
| SpillTree & | referenceNode | ||
| ) |
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. |
|
private |
The number of nodes which have been pruned during traversal.
Definition at line 62 of file spill_single_tree_traverser.hpp.
|
private |
Reference to the rules with which the tree will be traversed.
Definition at line 59 of file spill_single_tree_traverser.hpp.
1.8.11