Nested functions for population density dependence.
Modular functions for the population simulator for performing density dependent adjustments to transition rates.
population_density( populations, stage_matrix, fecundity_mask, fecundity_max, density_dependence, growth_rate_max, density_affects, density_stages, density_precision, simulator )
populations |
Number of populations. |
stage_matrix |
Matrix of transition (fecundity & survival) rates between stages at each time step (Leslie/Lefkovitch matrix). |
fecundity_mask |
Matrix of 0-1 to indicate which (proportions) of transition rates refer to fecundity. |
fecundity_max |
Maximum transition fecundity rate (in Leslie/Lefkovitch matrix). |
density_dependence |
Density dependence can be "ceiling" (default), "logistic" (Ricker), or a user-defined function (optionally nested in a list with additional attributes) for adjusting transition rates:
returns an adjusted transition array for occupied populations |
growth_rate_max |
Maximum growth rate (utilized by density dependence processes). |
density_affects |
Matrix of booleans or numeric (0-1) indicating the transition vital rates affected by density (default is all). |
density_stages |
Array of booleans or numeric (0,1) for each stage to indicate which stages are affected by density (default is all). |
density_precision |
Numeric precision of the calculated multipliers (used when stages > 1) applied to affected transition rates (default is 3 decimal places). |
simulator |
|
Density dependent calculation function, either:
function(carrying_capacity, stage_abundance)
For ceiling density dependence function, OR
function(transition_array, carrying_capacity, stage_abundance, occupied_indices)
For user-defined density dependence function, where:
transition_array
3D array of transition rates: stages by stages by populations.
carrying_capacity
Array of carrying capacity values for each population.
stage_abundance
Matrix of abundance for each stage (rows) and population (columns).
occupied_indices
Array of indices for populations occupied.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.