globalDensity {nemBM} | R Documentation |
Network density based on an image matrix and a partition
Description
Based on an image matrix and a partition it calculate the density of a whole network.
Usage
globalDensity(M, partition)
Arguments
M |
Image matrix with block densities. |
partition |
A partition in a vector format. Each unique value (positive integers) represents one cluster. |
Value
Density of a whole network (a single value).
Author(s)
Marjan Cugmas
Examples
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)
[Package nemBM version 1.00.01 Index]