14 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_SINGLE_TREE_TRAVERSER_HPP 15 #define MLPACK_CORE_TREE_RECTANGLE_TREE_SINGLE_TREE_TRAVERSER_HPP 24 template<
typename MetricType,
25 typename StatisticType,
29 template<
typename>
class AuxiliaryInformationType>
30 template<
typename RuleType>
31 class RectangleTree<MetricType, StatisticType, MatType, SplitType,
32 DescentType, AuxiliaryInformationType>::SingleTreeTraverser
38 SingleTreeTraverser(RuleType& rule);
47 void Traverse(
const size_t queryIndex,
const RectangleTree& referenceNode);
80 #include "single_tree_traverser_impl.hpp" size_t numPrunes
The number of nodes which have been prenud during traversal.
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
RuleType & rule
Reference to the rules with which the tree will be traversed.
A rectangle type tree tree, such as an R-tree or X-tree.
RectangleTree()
A default constructor.
size_t & NumPrunes()
Modify the number of prunes.
static bool NodeComparator(const NodeAndScore &obj1, const NodeAndScore &obj2)
size_t NumPrunes() const
Get the number of prunes.