24 #ifndef __MLPACK_CORE_TREE_BINARY_SPACE_TREE_SINGLE_TREE_TRAVERSER_HPP
25 #define __MLPACK_CORE_TREE_BINARY_SPACE_TREE_SINGLE_TREE_TRAVERSER_HPP
34 template<
typename BoundType,
typename StatisticType,
typename MatType>
35 template<
typename RuleType>
36 class BinarySpaceTree<BoundType, StatisticType, MatType>::SingleTreeTraverser
42 SingleTreeTraverser(RuleType& rule);
70 #include "single_tree_traverser_impl.hpp"
RuleType & rule
Reference to the rules with which the tree will be traversed.
size_t & NumPrunes()
Modify the number of prunes.
size_t NumPrunes() const
Get the number of prunes.
size_t numPrunes
The number of nodes which have been pruned during traversal.
BinarySpaceTree(MatType &data, const size_t leafSize=20)
Construct this as the root node of a binary space tree using the given dataset.