mlpack  master
unmap.hpp
Go to the documentation of this file.
1 
12 #ifndef MLPACK_METHODS_NEIGHBOR_SEARCH_UNMAP_HPP
13 #define MLPACK_METHODS_NEIGHBOR_SEARCH_UNMAP_HPP
14 
15 #include <mlpack/prereqs.hpp>
16 
17 namespace mlpack {
18 namespace neighbor {
19 
35 void Unmap(const arma::Mat<size_t>& neighbors,
36  const arma::mat& distances,
37  const std::vector<size_t>& referenceMap,
38  const std::vector<size_t>& queryMap,
39  arma::Mat<size_t>& neighborsOut,
40  arma::mat& distancesOut,
41  const bool squareRoot = false);
42 
56 void Unmap(const arma::Mat<size_t>& neighbors,
57  const arma::mat& distances,
58  const std::vector<size_t>& referenceMap,
59  arma::Mat<size_t>& neighborsOut,
60  arma::mat& distancesOut,
61  const bool squareRoot = false);
62 
63 } // namespace neighbor
64 } // namespace mlpack
65 
66 #endif
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: binarize.hpp:18
The core includes that mlpack expects; standard C++ includes and Armadillo.
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...