kmeans
A C++ library for k-means
Loading...
Searching...
No Matches
Public Attributes | List of all members
kmeans::Details< Index_ > Struct Template Reference

Additional statistics from the k-means algorithm. More...

#include <Details.hpp>

Public Attributes

std::vector< Index_ > sizes
 
int iterations = 0
 
int status = 0
 

Detailed Description

template<typename Index_ = int>
struct kmeans::Details< Index_ >

Additional statistics from the k-means algorithm.

Template Parameters
Index_Integer type for the observation index.

Member Data Documentation

◆ iterations

template<typename Index_ = int>
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.

◆ sizes

template<typename Index_ = int>
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.

◆ status

template<typename Index_ = int>
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.


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