A dual-tree cover tree traverser; see dual_tree_traverser.hpp.
struct DualCoverTreeMapEntry
Struct used for traversal.
DualTreeTraverser (RuleType &rule)
Initialize the dual tree traverser with the given rule type. size_t NumBaseCases () const
size_t NumPrunes () const
Get the number of pruned nodes. size_t & NumPrunes ()
Modify the number of pruned nodes. size_t NumScores () const
size_t NumVisited () const
void Traverse (CoverTree &queryNode, CoverTree &referenceNode)
Traverse the two specified trees.
void PruneMap (CoverTree &queryNode, std::map< int, std::vector< DualCoverTreeMapEntry > > &referenceMap, std::map< int, std::vector< DualCoverTreeMapEntry > > &childMap)
Prepare map for recursion. void ReferenceRecursion (CoverTree &queryNode, std::map< int, std::vector< DualCoverTreeMapEntry > > &referenceMap)
void Traverse (CoverTree &queryNode, std::map< int, std::vector< DualCoverTreeMapEntry > > &referenceMap)
Helper function for traversal of the two trees.
size_t numPrunes
The number of pruned nodes. RuleType & rule
The instantiated rule set for pruning branches.
A dual-tree cover tree traverser; see dual_tree_traverser.hpp.
Definition at line 224 of file cover_tree.hpp.
Initialize the dual tree traverser with the given rule type.
Definition at line 58 of file dual_tree_traverser.hpp.
Get the number of pruned nodes.
Definition at line 50 of file dual_tree_traverser.hpp.
Modify the number of pruned nodes.
Definition at line 52 of file dual_tree_traverser.hpp.
Definition at line 57 of file dual_tree_traverser.hpp.
Definition at line 56 of file dual_tree_traverser.hpp.
Prepare map for recursion.
Traverse the two specified trees.
Parameters:
queryNode Root of query tree.
referenceNode Root of reference tree.
Helper function for traversal of the two trees.
The number of pruned nodes.
Definition at line 65 of file dual_tree_traverser.hpp.
The instantiated rule set for pruning branches.
Definition at line 62 of file dual_tree_traverser.hpp.
Generated automatically by Doxygen for MLPACK from the source code.