View source: R/getConnectance.R
getConnectance | R Documentation |
Compute connectance of an interaction matrix.
getConnectance(A)
A |
an interaction matrix |
The connectance is defined as c=E/(N*(N-1)), where E is the number of realized arcs (the number of non-zero entries in the interaction matrix) and N*(N-1) the number of possible arcs. The diagonal (self-arcs) is excluded.
the connectance
A <- cbind(c(-1,0,1),c(0,-1,0),c(-1,0,-1)) x <- getConnectance(A)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.