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

Implementation of the kmeans sampling scheme. More...

#include <kmeans_selection.hpp>

Static Public Member Functions

static const arma::mat * Select (const arma::mat &data, const size_t m)
 Use the K-Means clustering method to select the specified number of points in the dataset. More...
 

Detailed Description

template<typename ClusteringType = kmeans::KMeans<>, size_t maxIterations = 5>
class mlpack::kernel::KMeansSelection< ClusteringType, maxIterations >

Implementation of the kmeans sampling scheme.

Template Parameters
ClusteringTypeType of clustering.
maxIterationsMaximum number of iterations allowed before giving up.

Member Function Documentation

◆ Select()

template<typename ClusteringType = kmeans::KMeans<>, size_t maxIterations = 5>
static const arma::mat* mlpack::kernel::KMeansSelection< ClusteringType, maxIterations >::Select ( const arma::mat &  data,
const size_t  m 
)
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.

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