initialise_default_Scaled {ATNr} | R Documentation |
Initialise the default parametrisation for the scaled version of the ATN model as in Delmas et al. (2016).
initialise_default_Scaled(model)
model |
an object of class Rcpp_Scaled. |
An object of class Rcpp_Scaled with default parameters as in Delmas et al. (2017).
Delmas, E., Brose, U., Gravel, D., Stouffer, D.B. and Poisot, T. (2017), Simulations of biomass dynamics in community food webs. Methods Ecol Evol, 8: 881-886. https://doi.org/10.1111/2041-210X.12713
library(ATNr)
set.seed(123)
masses <- runif(20, 10, 100) #body mass of species
L <- create_Lmatrix(masses, 10, Ropt = 10)
L[L > 0] <- 1
mod <- create_model_Scaled(20, 10, BM = masses, fw = L)
mod <- initialise_default_Scaled(mod)