kmeans
A C++ library for k-means
|
Additional statistics from the k-means algorithm. More...
#include <Details.hpp>
Public Attributes | |
std::vector< Index_ > | sizes |
int | iterations = 0 |
int | status = 0 |
Additional statistics from the k-means algorithm.
Index_ | Integer type for the observation index. |
int kmeans::Details< Index_ >::iterations = 0 |
The number of iterations used to achieve convergence. This value may be greater than the maxit
if convergence was not achieved, see status
.
std::vector<Index_> kmeans::Details< Index_ >::sizes |
The number of observations in each cluster. Some clusters may be empty, e.g., when there are more requested centers than clusters.
int kmeans::Details< Index_ >::status = 0 |
The status of the algorithm on completion. A value of 0 indicates that the algorithm completed successfully. The interpretation of a non-zero value depends on the algorithm.