Compute the compactness validity index for a clustering result.
a dataset with rows as observations, columns as variables
a vector of cluster labels from a clustering result
This index is agnostic to any reference clustering results, calculating cluster performance on the basis of compactness and separability. Smaller values indicate a better clustering structure.
the compactness score
valid_compactness by Simon Garrett in
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.