23 #ifndef __MLPACK_METHODS_NYSTROEM_METHOD_KMEANS_SELECTION_HPP
24 #define __MLPACK_METHODS_NYSTROEM_METHOD_KMEANS_SELECTION_HPP
32 template<
typename ClusteringType = kmeans::KMeans<> >
44 const static arma::mat*
Select(
const arma::mat& data,
46 const size_t maxIterations = 5)
48 arma::Col<size_t> assignments;
49 arma::mat* centroids =
new arma::mat;
52 ClusteringType kmeans(maxIterations);
53 kmeans.Cluster(data, m, assignments, *centroids);
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...