network_edge_strength: Count edges in an adjacency matrix using different cut-off...

network_edge_strengthR Documentation

Count edges in an adjacency matrix using different cut-off thresholds.

Description

Computes the how many edges remain in a network if edges with a weight lower than a certain threshold are removed. The number of remaining edges between 1 and max(adjm) are calculated. It is assumend that the matrix is symmetric and therefore the number of edges divided by two. Uses the function replace_values.

Usage

network_edge_strength(adjm)

Arguments

adjm

A symmetrix numeric matrix.

Value

A numeirc matrix of dim(max(adjm), 2). The first column indicated the applied threshold, the second column the remaining edges.

Examples

m <- matrix(seq(1:16), nrow=4)
# m <- matrix(rnorm(10000), nrow=100)
# bics <- c(run_fabia(m), run_isa(m), run_plaid(m))
# fn <- feature_network(bics, m)
# network_edge_strength(apply_threshold(fn))


tdrose/mosbi documentation built on May 4, 2022, 3:22 p.m.