33 #ifndef __MLPACK_METHODS_RANN_RA_SEARCH_HPP
34 #define __MLPACK_METHODS_RANN_RA_SEARCH_HPP
67 template<
typename SortPolicy = NearestNeighborSort,
69 typename TreeType = tree::BinarySpaceTree<bound::HRectBound<2, false>,
70 RAQueryStat<SortPolicy> > >
96 const typename TreeType::Mat&
querySet,
97 const bool naive =
false,
99 const MetricType
metric = MetricType());
123 RASearch(
const typename TreeType::Mat& referenceSet,
124 const bool naive =
false,
126 const MetricType
metric = MetricType());
159 const typename TreeType::Mat& referenceSet,
160 const typename TreeType::Mat& querySet,
162 const MetricType
metric = MetricType());
192 const typename TreeType::Mat& referenceSet,
194 const MetricType
metric = MetricType());
238 void Search(
const size_t k,
239 arma::Mat<size_t>& resultingNeighbors,
240 arma::mat& distances,
241 const double tau = 5,
242 const double alpha = 0.95,
243 const bool sampleAtLeaves =
false,
244 const bool firstLeafExact =
false,
245 const size_t singleSampleLimit = 20);
308 #include "ra_search_impl.hpp"