View source: R/cluster_funcs.R
louvain_k | R Documentation |
Optimizes Louvain clustering over a range of number of neighbors 'k' by silhouette score.
louvain_k(dist.mat, kmin = 5, kmax = 50, kstep = 5)
dist.mat |
Distance matrix or distance structure like that generated by 'dist'. |
kmin |
Minimum number of neighbors Default of 5. |
kmax |
Maximum number of neibhbors Default of 50. |
kstep |
Step size between k values. Default of 5. |
A list; 'opt.clust' with the optimal clustering; 'clustering.objs', a list of all clusterings generated; 'sil.scores' a list of silhouette scores for each clustering object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.