getConnectance: Connectance

View source: R/getConnectance.R

getConnectanceR Documentation

Connectance

Description

Compute connectance of an interaction matrix.

Usage

getConnectance(A)

Arguments

A

an interaction matrix

Details

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.

Value

the connectance

Examples

  A <- cbind(c(-1,0,1),c(0,-1,0),c(-1,0,-1))
  x <- getConnectance(A)

hallucigenia-sparsa/seqtime documentation built on Jan. 9, 2023, 11:53 p.m.