Compute the positive edge percentage of an interaction matrix.

getPep(A)

Arguments

A

the interaction matrix

Value

the positive edge percentage

Details

Values on the diagonal are ignored. More precisely, the positive arc percentage is computed, e.g. the percentage of positive entries in the interaction matrix.

Examples

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