---
name: "mlpack_kernel_KMeansSelection"
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_KMeansSelection"
---

# mlpack\_kernel\_KMeansSelection(3)

## NAME

mlpack::kernel::KMeansSelection\< ClusteringType \> -

## SYNOPSIS

### Static Public Member Functions

static const arma::mat \* **Select** (const arma::mat &data, const size\_t m, const size\_t maxIterations=5)\
 *Use the K-Means clustering method to select the specified number of points in the dataset.*

## Detailed Description

### template\<typename ClusteringType = kmeans::KMeans\<\>\>class mlpack::kernel::KMeansSelection\< ClusteringType \>

Definition at line 33 of file kmeans\_selection.hpp.

## Member Function Documentation

### template\<typename ClusteringType = kmeans::KMeans\<\>\> static const arma::mat\* mlpack::kernel::KMeansSelection\< ClusteringType \>::Select (const arma::mat &data, const size\_tm, const size\_tmaxIterations = `5`)` [inline]`, ` [static]`

Use the K-Means clustering method to select the specified number of points in the dataset. You are responsible for deleting the returned matrix!

**Parameters:**

*data* Dataset to sample from. \
 *m* Number of points to select.

**Returns:**

Matrix pointer in which centroids are stored.

Definition at line 44 of file kmeans\_selection.hpp.

## Author

Generated automatically by Doxygen for MLPACK from the source code.
