Description Usage Arguments Value References Examples
View source: R/core_functions.R
This function performs clustering of a similarity matrix following the method of Ng or of Melia. We recommend using the Ng method with GMM to cluster the eigenvectors instead of k-means.
1 | cluster_similarity(A2, k = k, clusteralg = "GMM", specalg = "Ng")
|
A2 |
Data frame or matrix: a similarity matrix |
k |
Numerical value: the number of clusters |
clusteralg |
Character value: GMM or km clustering algorithm (suggested=GMM) |
specalg |
Character value: Ng or Melia variant of spectral clustering (default=Ng) |
A numeric vector of cluster assignments
Ng, Andrew Y., Michael I. Jordan, and Yair Weiss. "On spectral clustering: Analysis and an algorithm." Advances in neural information processing systems. 2002.
Meila, Marina, et al. "Spectral Clustering: a Tutorial for the 2010’s." Handbook of Cluster Analysis. CRC Press, 2016. 1-23.
1 | ng_similarity <- cluster_similarity(missl[[1]],k=8)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.