mlpack
master
|
A dual-tree traverser; see dual_tree_traverser.hpp. More...
Public Member Functions | |
DualTreeTraverser (RuleType &rule) | |
Instantiate the given dual-tree traverser with the given rule set. More... | |
size_t | NumBaseCases () const |
Get the number of times a base case was computed. More... | |
size_t & | NumBaseCases () |
Modify the number of times a base case was computed. More... | |
size_t | NumPrunes () const |
Get the number of pruned nodes. More... | |
size_t & | NumPrunes () |
Modify the number of pruned nodes (i.e. to reset it). More... | |
size_t | NumScores () const |
Get the number of times a node was scored. More... | |
size_t & | NumScores () |
Modify the number of times a node was scored. More... | |
size_t | NumVisited () const |
Get the number of visited node combinations. More... | |
size_t & | NumVistied () |
Modify the number of visited node combinations. More... | |
void | Traverse (Octree &queryNode, Octree &referenceNode) |
Traverse the two trees. More... | |
Private Attributes | |
size_t | numBaseCases |
The number of times a base case was calculated. More... | |
size_t | numPrunes |
The number of prunes. More... | |
size_t | numScores |
The number of times a node was scored. More... | |
size_t | numVisited |
The number of visited node combinations. More... | |
RuleType & | rule |
The rule type to use. More... | |
RuleType::TraversalInfoType | traversalInfo |
Traversal information, held in the class so that it isn't continually being reallocated. More... | |
A dual-tree traverser; see dual_tree_traverser.hpp.
Definition at line 25 of file dual_tree_traverser.hpp.
mlpack::tree::Octree< MetricType, StatisticType, MatType >::DualTreeTraverser< MetricType, StatisticType, MatType >::DualTreeTraverser | ( | RuleType & | rule | ) |
Instantiate the given dual-tree traverser with the given rule set.
|
inline |
Get the number of times a base case was computed.
Definition at line 55 of file dual_tree_traverser.hpp.
|
inline |
Modify the number of times a base case was computed.
Definition at line 57 of file dual_tree_traverser.hpp.
|
inline |
Get the number of pruned nodes.
Definition at line 40 of file dual_tree_traverser.hpp.
|
inline |
Modify the number of pruned nodes (i.e. to reset it).
Definition at line 42 of file dual_tree_traverser.hpp.
|
inline |
Get the number of times a node was scored.
Definition at line 50 of file dual_tree_traverser.hpp.
|
inline |
Modify the number of times a node was scored.
Definition at line 52 of file dual_tree_traverser.hpp.
|
inline |
Get the number of visited node combinations.
Definition at line 45 of file dual_tree_traverser.hpp.
|
inline |
Modify the number of visited node combinations.
Definition at line 47 of file dual_tree_traverser.hpp.
void mlpack::tree::Octree< MetricType, StatisticType, MatType >::DualTreeTraverser< MetricType, StatisticType, MatType >::Traverse | ( | Octree & | queryNode, |
Octree & | referenceNode | ||
) |
Traverse the two trees.
This does not reset the statistics of the traversals (it just adds to them).
|
private |
The number of times a base case was calculated.
Definition at line 70 of file dual_tree_traverser.hpp.
|
private |
The number of prunes.
Definition at line 64 of file dual_tree_traverser.hpp.
|
private |
The number of times a node was scored.
Definition at line 68 of file dual_tree_traverser.hpp.
|
private |
The number of visited node combinations.
Definition at line 66 of file dual_tree_traverser.hpp.
|
private |
The rule type to use.
Definition at line 61 of file dual_tree_traverser.hpp.
|
private |
Traversal information, held in the class so that it isn't continually being reallocated.
Definition at line 74 of file dual_tree_traverser.hpp.