nodf_cpp {maxnodf}R Documentation

Raw NODF calculation

Description

Calculates the raw NODF of a bipartite incidence matrix

Usage

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

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

[Package maxnodf version 1.0.0 Index]