MLPACK  1.0.10
Static Public Member Functions | List of all members
mlpack::kernel::KMeansSelection< ClusteringType > Class Template Reference

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

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_t  m,
const size_t  maxIterations = 5 
)
inlinestatic

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
dataDataset to sample from.
mNumber of points to select.
Returns
Matrix pointer in which centroids are stored.

Definition at line 44 of file kmeans_selection.hpp.


The documentation for this class was generated from the following file: