mlpack  1.0.12
unmap.hpp
Go to the documentation of this file.
1 
14 #ifndef __MLPACK_METHODS_NEIGHBOR_SEARCH_UNMAP_HPP
15 #define __MLPACK_METHODS_NEIGHBOR_SEARCH_UNMAP_HPP
16 
17 #include <mlpack/core.hpp>
18 
19 namespace mlpack {
20 namespace neighbor {
21 
37 void Unmap(const arma::Mat<size_t>& neighbors,
38  const arma::mat& distances,
39  const std::vector<size_t>& referenceMap,
40  const std::vector<size_t>& queryMap,
41  arma::Mat<size_t>& neighborsOut,
42  arma::mat& distancesOut,
43  const bool squareRoot = false);
44 
58 void Unmap(const arma::Mat<size_t>& neighbors,
59  const arma::mat& distances,
60  const std::vector<size_t>& referenceMap,
61  arma::Mat<size_t>& neighborsOut,
62  arma::mat& distancesOut,
63  const bool squareRoot = false);
64 
65 }; // namespace neighbor
66 }; // namespace mlpack
67 
68 #endif
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: load.hpp:23
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...