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;
385 arma::vec& distances,
388 size_t& usedSetSize);
402 const arma::Col<size_t>& indices,
403 arma::vec& distances,
404 const size_t pointSetSize);
420 arma::vec& distances,
422 const size_t pointSetSize);
444 arma::vec& distances,
445 const size_t childFarSetSize,
446 const size_t childUsedSetSize,
447 const size_t farSetSize);
450 arma::vec& distances,
454 arma::Col<size_t>& childIndices,
455 const size_t childFarSetSize,
456 const size_t childUsedSetSize);
458 arma::vec& distances,
460 const size_t nearSetSize,
461 const size_t pointSetSize);
486 #include "cover_tree_impl.hpp"