View source: R/globalDensity.R
globalDensity | R Documentation |
Based on an image matrix and a partition it calculate the density of a whole network.
globalDensity(M, partition)
M |
Image matrix with block densities. |
partition |
A partition in a vector format. Each unique value (positive integers) represents one cluster. |
Density of a whole network (a single value).
Marjan Cugmas
M <- matrix(c(0.1, 0.4, 0.5, 0.3), nrow = 2) partition <- c(1, 2, 2, 1, 1, 2, 2, 2, 1) globalDensity(M = M, partition = partition)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.