|
mlpack
master
|
A single-tree cover tree traverser; see single_tree_traverser.hpp for implementation. More...
Public Member Functions | |
| SingleTreeTraverser (RuleType &rule) | |
| Initialize the single tree traverser with the given rule. More... | |
| size_t | NumPrunes () const |
| Get the number of prunes so far. More... | |
| size_t & | NumPrunes () |
| Set the number of prunes (good for a reset to 0). More... | |
| void | Traverse (const size_t queryIndex, CoverTree &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 single-tree cover tree traverser; see single_tree_traverser.hpp for implementation.
Definition at line 257 of file cover_tree.hpp.
| mlpack::tree::CoverTree< MetricType, StatisticType, MatType, RootPointPolicy >::SingleTreeTraverser< RuleType >::SingleTreeTraverser | ( | RuleType & | rule | ) |
Initialize the single tree traverser with the given rule.
|
inline |
Get the number of prunes so far.
Definition at line 50 of file single_tree_traverser.hpp.
|
inline |
Set the number of prunes (good for a reset to 0).
Definition at line 52 of file single_tree_traverser.hpp.
| void mlpack::tree::CoverTree< MetricType, StatisticType, MatType, RootPointPolicy >::SingleTreeTraverser< RuleType >::Traverse | ( | const size_t | queryIndex, |
| CoverTree & | referenceNode | ||
| ) |
Traverse the tree with the given point.
| queryIndex | The index of the point in the query set which is 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 59 of file single_tree_traverser.hpp.
|
private |
Reference to the rules with which the tree will be traversed.
Definition at line 56 of file single_tree_traverser.hpp.
1.8.11