16 #ifndef __MLPACK_METHODS_NYSTROEM_METHOD_RANDOM_SELECTION_HPP
17 #define __MLPACK_METHODS_NYSTROEM_METHOD_RANDOM_SELECTION_HPP
34 const static arma::Col<size_t>
Select(
const arma::mat& data,
const size_t m)
36 arma::Col<size_t> selectedPoints(m);
37 for (
size_t i = 0; i < m; ++i)
40 return selectedPoints;
Linear algebra utility functions, generally performed on matrices or vectors.
static const arma::Col< size_t > Select(const arma::mat &data, const size_t m)
Randomly select the specified number of points in the dataset.
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...
int RandInt(const int hiExclusive)
Generates a uniform random integer.