24 #ifndef __MLPACK_METHODS_KMEANS_MAX_VARIANCE_NEW_CLUSTER_HPP 25 #define __MLPACK_METHODS_KMEANS_MAX_VARIANCE_NEW_CLUSTER_HPP 55 template<
typename MatType>
57 const size_t emptyCluster,
58 const MatType& centroids,
59 arma::Col<size_t>& clusterCounts,
60 arma::Col<size_t>& assignments);
67 #include "max_variance_new_cluster_impl.hpp" Linear algebra utility functions, generally performed on matrices or vectors.
MaxVarianceNewCluster()
Default constructor required by EmptyClusterPolicy.
When an empty cluster is detected, this class takes the point furthest from the centroid of the clust...
static size_t EmptyCluster(const MatType &data, const size_t emptyCluster, const MatType ¢roids, arma::Col< size_t > &clusterCounts, arma::Col< size_t > &assignments)
Take the point furthest from the centroid of the cluster with maximum variance to be a new cluster...