powered by
Spectral clustering from adjacency matrix
spect_clust_from_adj_mat( adj.mat, k = 2, max.eig = 10, alpha = 1, adj.conv = TRUE, do.plot = FALSE )
vector of clusters
adjacency matrix
number of clusters (default=2)
maximum number of eigenvectors in use (dafaut = 10).
soft threshold (considered if adj.conv = TRUE) (default = 1)
adj.conv = TRUE
binary value to apply soft thresholding (default = TRUE)
TRUE
binary value to do plot (dafaut = FALSE)
FALSE
apply PAM (k-medoids) clustering on the adjacency matrix
Adj_mat = rbind(c(0.0,0.9,0.0), c(0.9,0.0,0.2), c(0.0,0.2,0.0)) hir_clust_from_adj_mat(Adj_mat)
Run the code above in your browser using DataLab