|
MLPACK
1.0.7
|
A dual-tree cover tree traverser; see dual_tree_traverser.hpp. More...
Public Member Functions | |
| DualTreeTraverser (RuleType &rule) | |
| Initialize the dual tree traverser with the given rule type. More... | |
| size_t | NumBaseCases () const |
| size_t | NumPrunes () const |
| Get the number of pruned nodes. More... | |
| size_t & | NumPrunes () |
| Modify the number of pruned nodes. More... | |
| size_t | NumScores () const |
| size_t | NumVisited () const |
| void | Traverse (CoverTree &queryNode, CoverTree &referenceNode) |
| Traverse the two specified trees. More... | |
| void | Traverse (CoverTree &queryNode, std::map< int, std::vector< DualCoverTreeMapEntry< MetricType, RootPointPolicy, StatisticType > > > &referenceMap) |
| Helper function for traversal of the two trees. More... | |
Private Member Functions | |
| void | PruneMap (CoverTree &queryNode, std::map< int, std::vector< DualCoverTreeMapEntry< MetricType, RootPointPolicy, StatisticType > > > &referenceMap, std::map< int, std::vector< DualCoverTreeMapEntry< MetricType, RootPointPolicy, StatisticType > > > &childMap) |
| Prepare map for recursion. More... | |
| void | ReferenceRecursion (CoverTree &queryNode, std::map< int, std::vector< DualCoverTreeMapEntry< MetricType, RootPointPolicy, StatisticType > > > &referenceMap) |
Private Attributes | |
| size_t | numPrunes |
| The number of pruned nodes. More... | |
| RuleType & | rule |
| The instantiated rule set for pruning branches. More... | |
A dual-tree cover tree traverser; see dual_tree_traverser.hpp.
Definition at line 224 of file cover_tree.hpp.
| mlpack::tree::CoverTree< MetricType, RootPointPolicy, StatisticType >::DualTreeTraverser< RuleType >::DualTreeTraverser | ( | RuleType & | rule | ) |
Initialize the dual tree traverser with the given rule type.
|
inline |
Definition at line 70 of file dual_tree_traverser.hpp.
|
inline |
Get the number of pruned nodes.
Definition at line 62 of file dual_tree_traverser.hpp.
|
inline |
Modify the number of pruned nodes.
Definition at line 64 of file dual_tree_traverser.hpp.
|
inline |
Definition at line 69 of file dual_tree_traverser.hpp.
|
inline |
Definition at line 68 of file dual_tree_traverser.hpp.
|
private |
Prepare map for recursion.
|
private |
| void mlpack::tree::CoverTree< MetricType, RootPointPolicy, StatisticType >::DualTreeTraverser< RuleType >::Traverse | ( | CoverTree & | queryNode, |
| CoverTree & | referenceNode | ||
| ) |
Traverse the two specified trees.
| queryNode | Root of query tree. |
| referenceNode | Root of reference tree. |
| void mlpack::tree::CoverTree< MetricType, RootPointPolicy, StatisticType >::DualTreeTraverser< RuleType >::Traverse | ( | CoverTree & | queryNode, |
| std::map< int, std::vector< DualCoverTreeMapEntry< MetricType, RootPointPolicy, StatisticType > > > & | referenceMap | ||
| ) |
Helper function for traversal of the two trees.
|
private |
The number of pruned nodes.
Definition at line 77 of file dual_tree_traverser.hpp.
|
private |
The instantiated rule set for pruning branches.
Definition at line 74 of file dual_tree_traverser.hpp.
1.8.5