Cluster properties

class ClusterProperties

The ClusterProperties class provides access to the properties of clusters such as the number of clusters, the size of each cluster and point associations.

Public Functions

inline const auto &cluster_sizes() const

Returns a vector containing the sizes of each cluster.

Returns:

A vector of containing the sizes of each cluster

inline const auto &clusters() const

Returns an associator mapping clusters to their associated points.

Returns:

An host_associator mapping clusters to points

inline const auto &n_clusters() const

Returns the number of clusters.

Returns:

The number of clusters