RandomSelection Class Reference

Static Public Member Functions

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. More...

 

Detailed Description

Definition at line 22 of file random_selection.hpp.

Member Function Documentation

◆ Select()

static const arma::Col<size_t> Select ( const arma::mat &  data,
const size_t  m 
)
inlinestatic

Randomly select the specified number of points in the dataset.

Parameters
dataDataset to sample from.
mNumber of points to select.
Returns
Indices of selected points from the dataset.

Definition at line 32 of file random_selection.hpp.

References mlpack::math::RandInt().


The documentation for this class was generated from the following file:
  • /home/jenkins-mlpack/mlpack.org/_src/mlpack-3.3.2/src/mlpack/methods/nystroem_method/random_selection.hpp