Calculates the raw NODF of a bipartite incidence matrix
nodf_cpp(mtx)
A numeric matrix describing a bipartite network (a bipartite incidence matrix where elements are positive numbers if nodes interact, and 0 otherwise).
Returns the NODF of the network.
For a given network, nodf_cpp
calculates the raw NODF value. Calculation is fast as the code is implemented in C++.
# 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