15 #ifndef __MLPACK_METHODS_NYSTROEM_METHOD_KMEANS_SELECTION_HPP 16 #define __MLPACK_METHODS_NYSTROEM_METHOD_KMEANS_SELECTION_HPP 30 template<
typename ClusteringType = kmeans::KMeans<>,
size_t maxIterations = 5>
42 const static arma::mat*
Select(
const arma::mat& data,
const size_t m)
44 arma::Row<size_t> assignments;
45 arma::mat* centroids =
new arma::mat;
48 ClusteringType kmeans(maxIterations);
49 kmeans.Cluster(data, m, assignments, *centroids);
Linear algebra utility functions, generally performed on matrices or vectors.
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...
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...
Implementation of the kmeans sampling scheme.