23 #ifndef __MLPACK_METHODS_NEIGHBOR_SEARCH_NEIGHBOR_SEARCH_HPP
24 #define __MLPACK_METHODS_NEIGHBOR_SEARCH_NEIGHBOR_SEARCH_HPP
59 template<
typename SortPolicy = NearestNeighborSort,
61 typename TreeType = tree::BinarySpaceTree<bound::HRectBound<2>,
62 NeighborSearchStat<SortPolicy> > >
87 const typename TreeType::Mat&
querySet,
88 const bool naive =
false,
90 const size_t leafSize = 20,
91 const MetricType
metric = MetricType());
115 const bool naive =
false,
117 const size_t leafSize = 20,
118 const MetricType
metric = MetricType());
151 const typename TreeType::Mat& referenceSet,
152 const typename TreeType::Mat& querySet,
154 const MetricType
metric = MetricType());
184 const typename TreeType::Mat& referenceSet,
186 const MetricType
metric = MetricType());
207 void Search(
const size_t k,
208 arma::Mat<size_t>& resultingNeighbors,
209 arma::mat& distances);
254 #include "neighbor_search_impl.hpp"