Go to the documentation of this file.
15 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_DUAL_TREE_TRAVERSER_HPP
16 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_DUAL_TREE_TRAVERSER_HPP
25 template<
typename MetricType,
26 typename StatisticType,
28 template<
typename BoundMetricType,
typename...>
class BoundType,
29 template<
typename SplitBoundType,
typename SplitMatType>
31 template<
typename RuleType>
88 typename RuleType::TraversalInfoType traversalInfo;
95 #include "dual_tree_traverser_impl.hpp"
97 #endif // MLPACK_CORE_TREE_BINARY_SPACE_TREE_DUAL_TREE_TRAVERSER_HPP
size_t & NumBaseCases()
Modify the number of times a base case was calculated.
The core includes that mlpack expects; standard C++ includes and Armadillo.
A binary space partitioning tree, such as a KD-tree or a ball tree.
size_t NumVisited() const
Get the number of visited combinations.
size_t NumBaseCases() const
Get the number of times a base case was calculated.
A dual-tree traverser for binary space trees; see dual_tree_traverser.hpp.
size_t & NumScores()
Modify the number of times a node combination was scored.
Linear algebra utility functions, generally performed on matrices or vectors.
void Traverse(BinarySpaceTree &queryNode, BinarySpaceTree &referenceNode)
Traverse the two trees.
size_t & NumVisited()
Modify the number of visited combinations.
size_t NumPrunes() const
Get the number of prunes.
DualTreeTraverser(RuleType &rule)
Instantiate the dual-tree traverser with the given rule set.
size_t NumScores() const
Get the number of times a node combination was scored.
size_t & NumPrunes()
Modify the number of prunes.