View source: R/silhouette.profile.R
silhouette.profile | R Documentation |
Function to compute the silhouette profile for the Nclus cluster of the SOM neurons
silhouette.profile(
SOM,
Nclus,
dist_clust = "euclidean",
clust_method = "complete"
)
SOM |
the SOM object to cluster |
Nclus |
the cluster number on which the silhouette profile will be computed |
dist_clust |
the metric for the distance calculation |
clust_method |
the method for the clustering (passed to the hclust function |
A vector of silhouette profile computed with the cluster package
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_pro <- silhouette.profile(som_model, Nclus=5, clust_method="complete")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.