Scroll to navigation

mlpack::kernel::RandomSelection(3) MLPACK mlpack::kernel::RandomSelection(3)

NAME

mlpack::kernel::RandomSelection -

SYNOPSIS

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.

Detailed Description

Definition at line 32 of file random_selection.hpp.

Member Function Documentation

static const arma::Col<size_t> mlpack::kernel::RandomSelection::Select (const arma::mat &data, const size_tm) [inline], [static]

Randomly select the specified number of points in the dataset.
Parameters:
data Dataset to sample from.
 
m Number of points to select.
Returns:
Indices of selected points from the dataset.
Definition at line 42 of file random_selection.hpp.
References mlpack::math::RandInt().

Author

Generated automatically by Doxygen for MLPACK from the source code.
Tue Sep 9 2014 Version 1.0.10