24 #ifndef __MLPACK_CORE_TREE_COVER_TREE_SINGLE_TREE_TRAVERSER_HPP 25 #define __MLPACK_CORE_TREE_COVER_TREE_SINGLE_TREE_TRAVERSER_HPP 34 template<
typename MetricType,
typename RootPo
intPolicy,
typename StatisticType>
35 template<
typename RuleType>
36 class CoverTree<MetricType, RootPointPolicy, StatisticType>::SingleTreeTraverser
42 SingleTreeTraverser(RuleType& rule);
51 void Traverse(
const size_t queryIndex,
CoverTree& referenceNode);
70 #include "single_tree_traverser_impl.hpp" RuleType & rule
Reference to the rules with which the tree will be traversed.
size_t NumPrunes() const
Get the number of prunes so far.
size_t & NumPrunes()
Set the number of prunes (good for a reset to 0).
Linear algebra utility functions, generally performed on matrices or vectors.
CoverTree(const arma::mat &dataset, const double base=2.0, MetricType *metric=NULL)
Create the cover tree with the given dataset and given base.
size_t numPrunes
The number of nodes which have been pruned during traversal.