View source: R/clustering_evaluation.R
calcSilhouetteIdx | R Documentation |
Calculate the Silhouette index of clustering quality.
calcSilhouetteIdx(data, belongings)
data |
The original dataframe used for the clustering (n*p) |
belongings |
A membership matrix (n*k) |
The index is calculated with the function SIL.F from the package fclust. When the dataset is too large, an approach by subsampling is used to avoid crash.
A float, the fuzzy Silhouette index
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.