14 #ifndef MLPACK_METHODS_NYSTROEM_METHOD_RANDOM_SELECTION_HPP 15 #define MLPACK_METHODS_NYSTROEM_METHOD_RANDOM_SELECTION_HPP 32 const static arma::Col<size_t>
Select(
const arma::mat& data,
const size_t m)
34 arma::Col<size_t> selectedPoints(m);
35 for (
size_t i = 0; i < m; ++i)
38 return selectedPoints;
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.
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
int RandInt(const int hiExclusive)
Generates a uniform random integer.