View source: R/consensus_similarity.R
consensus_similarity | R Documentation |
Description of the consensus similarity function.
consensus_similarity(comm_matrix)
comm_matrix |
a matrix whose columns are different partition and whose rows are nodes within a network |
This function identifies a single representative partition from a set of partitions that is the most similar to the all others. Here, similarity is taken to be the z-score of the Rand coefficient.
the consensus partition determined by the maximum average pairwise similarity
set.seed(7183) x <- sample(x = rep(1:3, 4), 12) y <- sample(x = rep(1:3, 4), 12) z <- sample(x = rep(1:3, 4), 12) xyz_comms_mat <- matrix(c(x,y,z),nrow=length(x),ncol=3) consensus_similarity(xyz_comms_mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.