View source: R/silhouette.score.R
silhouette.score | R Documentation |
Function to compute the silhouette score for the clustering of SOM neurons
silhouette.score(
SOM,
dist_clust = "euclidean",
clust_method = "complete",
interval = seq(2, 30)
)
SOM |
the SOM object to cluster |
dist_clust |
the metric for the distance calculation |
clust_method |
the method for the clustering (passed to the hclust function |
interval |
the cluster number on which the silhouette score will be computed |
A vector with the silhouette scores for all the frames
Stefano Motta stefano.motta@unimib.it
#Read example SOM data
som_model <- readRDS(system.file("extdata", "SOM_HIFa.rds", package = "SOMMD"))
#Compute the silhouette profile
sil_score <- silhouette.score(som_model, clust_method="complete", interval=seq(2,8))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.