nodf_cpp: Raw NODF calculation

Description Usage Arguments Details Value Examples

View source: R/RcppExports.R

Description

Calculates the raw NODF of a bipartite incidence matrix

Usage

1
nodf_cpp(mtx)

Arguments

mtx

A numeric matrix describing a bipartite network (a bipartite incidence matrix where elements are positive numbers if nodes interact, and 0 otherwise).

Details

For a given network, nodf_cpp calculates the raw NODF value. Calculation is fast as the code is implemented in C++.

Value

Returns the NODF of the network.

Examples

1
2
set.seed(123)
nodf_cpp(matrix(sample(x = 0:1, size = 100, replace = TRUE),10,10))

maxnodf documentation built on March 13, 2020, 5:06 p.m.