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;
389 arma::vec& distances,
392 size_t& usedSetSize);
406 const arma::Col<size_t>& indices,
407 arma::vec& distances,
408 const size_t pointSetSize);
424 arma::vec& distances,
426 const size_t pointSetSize);
448 arma::vec& distances,
449 const size_t childFarSetSize,
450 const size_t childUsedSetSize,
451 const size_t farSetSize);
454 arma::vec& distances,
458 arma::Col<size_t>& childIndices,
459 const size_t childFarSetSize,
460 const size_t childUsedSetSize);
462 arma::vec& distances,
464 const size_t nearSetSize,
465 const size_t pointSetSize);
490 #include "cover_tree_impl.hpp"