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

Full statistics from k-means clustering. More...

#include <kmeans.hpp>

Collaboration diagram for kmeans::Results< Cluster_, Float_, Index_ >:
Collaboration graph
[legend]

Public Attributes

std::vector< Cluster_clusters
 
std::vector< Float_centers
 
Details< Index_ > details
 

Detailed Description

template<typename Cluster_, typename Float_, typename Index_>
struct kmeans::Results< Cluster_, Float_, Index_ >

Full statistics from k-means clustering.

Member Data Documentation

◆ centers

template<typename Cluster_ , typename Float_ , typename Index_ >
std::vector<Float_> kmeans::Results< Cluster_, Float_, Index_ >::centers

An array containing 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 its cluster.

◆ clusters

template<typename Cluster_ , typename Float_ , typename Index_ >
std::vector<Cluster_> kmeans::Results< Cluster_, Float_, Index_ >::clusters

An array of length equal to the number of observations, containing 0-indexed cluster assignments for each observation.

◆ details

template<typename Cluster_ , typename Float_ , typename Index_ >
Details<Index_> kmeans::Results< Cluster_, Float_, Index_ >::details

Further details from the chosen k-means algorithm.


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