33 #ifndef __MLPACK_METHODS_RANN_RA_SEARCH_HPP
34 #define __MLPACK_METHODS_RANN_RA_SEARCH_HPP
56 template<
typename SortPolicy>
76 template<
typename TreeType>
78 bound(SortPolicy::WorstDistance()),
113 template<
typename SortPolicy = NearestNeighborSort,
116 RAQueryStat<SortPolicy> > >
142 const typename TreeType::Mat&
querySet,
143 const bool naive =
false,
145 const size_t leafSize = 20,
146 const MetricType
metric = MetricType());
170 RASearch(
const typename TreeType::Mat& referenceSet,
171 const bool naive =
false,
173 const size_t leafSize = 20,
174 const MetricType
metric = MetricType());
207 const typename TreeType::Mat& referenceSet,
208 const typename TreeType::Mat& querySet,
210 const MetricType
metric = MetricType());
240 const typename TreeType::Mat& referenceSet,
242 const MetricType
metric = MetricType());
286 void Search(
const size_t k,
287 arma::Mat<size_t>& resultingNeighbors,
288 arma::mat& distances,
289 const double tau = 5,
290 const double alpha = 0.95,
291 const bool sampleAtLeaves =
false,
292 const bool firstLeafExact =
false,
293 const size_t singleSampleLimit = 20);
353 #include "ra_search_impl.hpp"