kmeans
k-means clustering in C++
|
Results of the k-means clustering. More...
#include <kmeans.hpp>
Public Attributes | |
std::vector< Cluster_ > | clusters |
std::vector< Float_ > | centers |
Details< Index_ > | details |
Results of the k-means clustering.
std::vector<Float_> kmeans::Results< Index_, Cluster_, Float_ >::centers |
An array of length equal to the product of the number of dimensions and clusters. This contains a column-major matrix where each row corresponds to a dimension and each column corresponds to a cluster. Each column contains the centroid coordinates for the associated cluster.
std::vector<Cluster_> kmeans::Results< Index_, Cluster_, Float_ >::clusters |
An array of length equal to the number of observations, containing the 0-indexed cluster assignment for each observation. Each entry is less than the number of clusters.
Details<Index_> kmeans::Results< Index_, Cluster_, Float_ >::details |
Further details from running the chosen k-means algorithm.