MLPACK  1.0.10
Public Member Functions | Static Public Member Functions | List of all members
mlpack::kmeans::AllowEmptyClusters Class Reference

Policy which allows K-Means to create empty clusters without any error being reported. More...

Public Member Functions

 AllowEmptyClusters ()
 Default constructor required by EmptyClusterPolicy policy. More...
 

Static Public Member Functions

template<typename MatType >
static size_t EmptyCluster (const MatType &, const size_t, const MatType &, arma::Col< size_t > &, arma::Col< size_t > &)
 This function does nothing. More...
 

Detailed Description

Policy which allows K-Means to create empty clusters without any error being reported.

Definition at line 35 of file allow_empty_clusters.hpp.

Constructor & Destructor Documentation

mlpack::kmeans::AllowEmptyClusters::AllowEmptyClusters ( )
inline

Default constructor required by EmptyClusterPolicy policy.

Definition at line 39 of file allow_empty_clusters.hpp.

Member Function Documentation

template<typename MatType >
static size_t mlpack::kmeans::AllowEmptyClusters::EmptyCluster ( const MatType &  ,
const size_t  ,
const MatType &  ,
arma::Col< size_t > &  ,
arma::Col< size_t > &   
)
inlinestatic

This function does nothing.

It is called by K-Means when K-Means detects an empty cluster.

Template Parameters
MatTypeType of data (arma::mat or arma::spmat).
Parameters
dataDataset on which clustering is being performed.
emptyClusterIndex of cluster which is empty.
centroidsCentroids of each cluster (one per column).
clusterCountsNumber of points in each cluster.
assignmentsCluster assignments of each point.
Returns
Number of points changed (0).

Definition at line 55 of file allow_empty_clusters.hpp.


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