50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

maxnodf (version 1.0.0)

nodf_cpp: 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).

Value

Returns the NODF of the network.

Details

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

Examples

Run this code
# NOT RUN {
set.seed(123)
nodf_cpp(matrix(sample(x = 0:1, size = 100, replace = TRUE),10,10))
# }

Run the code above in your browser using DataLab