---
name: "mlpack_kernel_RandomSelection"
section: "3"
platform: "linux"
package: "mlpack-doc"
version: "1.0.10-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/mlpack_kernel_RandomSelection"
---

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