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>
32 class BinarySpaceTree<MetricType, StatisticType, MatType, BoundType,
33 SplitType>::DualTreeTraverser
39 DualTreeTraverser(RuleType& rule);
96 #include "dual_tree_traverser_impl.hpp" 98 #endif // MLPACK_CORE_TREE_BINARY_SPACE_TREE_DUAL_TREE_TRAVERSER_HPP size_t numVisited
The number of node combinations that have been visited during traversal.
size_t numScores
The number of times a node combination was scored.
Linear algebra utility functions, generally performed on matrices or vectors.
size_t numPrunes
The number of prunes.
size_t NumPrunes() const
Get the number of prunes.
The core includes that mlpack expects; standard C++ includes and Armadillo.
RuleType & rule
Reference to the rules with which the trees will be traversed.
size_t NumBaseCases() const
Get the number of times a base case was calculated.
size_t NumVisited() const
Get the number of visited combinations.
RuleType::TraversalInfoType traversalInfo
Traversal information, held in the class so that it isn't continually being reallocated.
size_t NumScores() const
Get the number of times a node combination was scored.
BinarySpaceTree()
A default constructor.
size_t & NumScores()
Modify the number of times a node combination was scored.
size_t & NumVisited()
Modify the number of visited combinations.
size_t & NumPrunes()
Modify the number of prunes.
size_t & NumBaseCases()
Modify the number of times a base case was calculated.
size_t numBaseCases
The number of times a base case was calculated.