rcpp_fishpop_growth | R Documentation |
Rcpp simulate fishpop growth.
rcpp_fishpop_growth(
fishpop,
fishpop_track,
seafloor,
pop_k,
pop_linf,
pop_a,
pop_b,
pop_n_body,
pop_reserves_max,
pop_reserves_consump,
extent,
dimensions,
min_per_i
)
fishpop , fishpop_track |
Matrix with fishpop values and starting population. |
seafloor |
Matrix with seafloor values. |
pop_k , pop_linf , pop_a , pop_b |
Numeric with parameters. |
pop_n_body , pop_reserves_max , min_per_i |
Numeric with parameters. |
pop_reserves_consump |
Double with consumption limit to fill reserves each time step. |
extent |
Vector with extent (xmin,xmax,ymin,ymax). |
dimensions |
Vector with dimensions (nrow, ncol). |
Function to simulate consumption, mortality, growth and excretion of fish individuals.
Each fish individual has to follow the von Bertalanffy growth curve (Froese and Pauly 2019) and the corresponding amount of nutrients for this are calculated based on a bioenergetics model (Allgeier et al. 2020). The nutrients are consumed from the detritus pool. If the available amount is not big enough, fish can either use their reserves. If there are no reserves, individuals die. Last, if the detritus pool is big enough, individuals can additionally fill up their reserves.
If individuals are acting accordingly to movement state 1 or 2 (only for
movement = 'behav'
), the consumption requirement must be met by the
reserves only.
If 0 < pop_reserves_consump < 1
, only a ratio of the pop_reserves_max
can be consumed each time step.
void
Allgeier, J.E., Cline, T.J., Walsworth, T.E., Wathen, G., Layman, C.A., Schindler, D.E., 2020. Individual behavior drives ecosystem function and the impacts of harvest. Sci. Adv. 6, eaax8329. <https://doi.org/10.1126/sciadv.aax8329>
Froese, R., Pauly, D., 2019. FishBase. World Wide Web electronic publication [WWW Document]. <www.fishbase.org>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.