MLPACK  1.0.10
max_variance_new_cluster.hpp
Go to the documentation of this file.
1 
24 #ifndef __MLPACK_METHODS_KMEANS_MAX_VARIANCE_NEW_CLUSTER_HPP
25 #define __MLPACK_METHODS_KMEANS_MAX_VARIANCE_NEW_CLUSTER_HPP
26 
27 #include <mlpack/core.hpp>
28 
29 namespace mlpack {
30 namespace kmeans {
31 
37 {
38  public:
41 
55  template<typename MatType>
56  static size_t EmptyCluster(const MatType& data,
57  const size_t emptyCluster,
58  const MatType& centroids,
59  arma::Col<size_t>& clusterCounts,
60  arma::Col<size_t>& assignments);
61 };
62 
63 }; // namespace kmeans
64 }; // namespace mlpack
65 
66 // Include implementation.
67 #include "max_variance_new_cluster_impl.hpp"
68 
69 #endif
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: load.hpp:31
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 &centroids, 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...