MLPACK  1.0.7
unmap.hpp
Go to the documentation of this file.
1 
22 #ifndef __MLPACK_METHODS_NEIGHBOR_SEARCH_UNMAP_HPP
23 #define __MLPACK_METHODS_NEIGHBOR_SEARCH_UNMAP_HPP
24 
25 #include <mlpack/core.hpp>
26 
27 namespace mlpack {
28 namespace neighbor {
29 
45 void Unmap(const arma::Mat<size_t>& neighbors,
46  const arma::mat& distances,
47  const std::vector<size_t>& referenceMap,
48  const std::vector<size_t>& queryMap,
49  arma::Mat<size_t>& neighborsOut,
50  arma::mat& distancesOut,
51  const bool squareRoot = false);
52 
66 void Unmap(const arma::Mat<size_t>& neighbors,
67  const arma::mat& distances,
68  const std::vector<size_t>& referenceMap,
69  arma::Mat<size_t>& neighborsOut,
70  arma::mat& distancesOut,
71  const bool squareRoot = false);
72 
73 }; // namespace neighbor
74 }; // namespace mlpack
75 
76 #endif
void Unmap(const arma::Mat< size_t > &neighbors, const arma::mat &distances, const std::vector< size_t > &referenceMap, const std::vector< size_t > &queryMap, arma::Mat< size_t > &neighborsOut, arma::mat &distancesOut, const bool squareRoot=false)
Assuming that the datasets have been mapped using the referenceMap and the queryMap (such as during k...