16 #ifndef __MLPACK_CORE_TREE_BINARY_SPACE_TREE_SINGLE_TREE_TRAVERSER_HPP
17 #define __MLPACK_CORE_TREE_BINARY_SPACE_TREE_SINGLE_TREE_TRAVERSER_HPP
26 template<
typename BoundType,
27 typename StatisticType,
30 template<
typename RuleType>
31 class BinarySpaceTree<BoundType, StatisticType, MatType, SplitType>::
38 SingleTreeTraverser(RuleType& rule);
66 #include "single_tree_traverser_impl.hpp"
Linear algebra utility functions, generally performed on matrices or vectors.
size_t numPrunes
The number of nodes which have been pruned during traversal.
size_t NumPrunes() const
Get the number of prunes.
RuleType & rule
Reference to the rules with which the tree will be traversed.
size_t & NumPrunes()
Modify the number of prunes.
BinarySpaceTree(MatType &data, const size_t maxLeafSize=20)
Construct this as the root node of a binary space tree using the given dataset.