22 #ifndef __MLPACK_CORE_TREE_COVER_TREE_COVER_TREE_HPP
23 #define __MLPACK_CORE_TREE_COVER_TREE_COVER_TREE_HPP
28 #include "../statistic.hpp"
100 template<
typename MetricType = metric::LMetric<2, true>,
101 typename RootPo
intPolicy = FirstPo
intIsRoot,
102 typename StatisticType = EmptyStatistic>
119 const double base = 2.0,
120 MetricType*
metric = NULL);
133 const double base = 2.0);
168 const size_t pointIndex,
172 arma::Col<size_t>& indices,
173 arma::vec& distances,
177 MetricType&
metric = NULL);
197 const size_t pointIndex,
202 MetricType*
metric = NULL);
219 template<
typename RuleType>
223 template<
typename RuleType>
283 double MinDistance(
const arma::vec& other,
const double distance)
const;
297 double MaxDistance(
const arma::vec& other,
const double distance)
const;
381 arma::vec& distances,
384 size_t& usedSetSize);
398 const arma::Col<size_t>& indices,
399 arma::vec& distances,
400 const size_t pointSetSize);
416 arma::vec& distances,
418 const size_t pointSetSize);
440 arma::vec& distances,
441 const size_t childFarSetSize,
442 const size_t childUsedSetSize,
443 const size_t farSetSize);
446 arma::vec& distances,
450 arma::Col<size_t>& childIndices,
451 const size_t childFarSetSize,
452 const size_t childUsedSetSize);
454 arma::vec& distances,
456 const size_t nearSetSize,
457 const size_t pointSetSize);
482 #include "cover_tree_impl.hpp"