update_rates | R Documentation |
Internal function that updates the all the rates and max extinction horizon at time t.
update_rates(
timeval,
total_time,
gam,
laa,
lac,
mu,
hyper_pars = hyper_pars,
area_pars = NULL,
peak = NULL,
island_ontogeny = NULL,
sea_level = NULL,
extcutoff,
K,
num_spec,
num_immigrants,
mainland_n,
trait_pars = NULL,
island_spec = NULL
)
timeval |
Numeric defining current time of simulation. |
total_time |
Numeric defining the length of the simulation in time units. |
gam |
A numeric with the per capita immigration rate. |
laa |
A numeric with the per capita anagenesis rate. |
lac |
A numeric with the per capita cladogenesis rate. |
mu |
A numeric with the per capita extinction rate. |
hyper_pars |
A named list of numeric hyperparameters for the rate
calculations as returned by
|
area_pars |
A named list containing area and sea level parameters as
created by
|
peak |
A numeric value specifying the peakiness (or shaprness) of the
ontogeny curve. Higher values imply peakier ontogeny. This value is
internally calculated by |
island_ontogeny |
In |
sea_level |
In |
extcutoff |
A numeric with the cutoff for the the maximum extinction rate preventing it from being too large and slowing down simulation. |
K |
A numeric with carrying capacity. |
num_spec |
A numeric with the current number of species. |
num_immigrants |
A numeric with the current number of non-endemic species (a.k.a non-endemic species). |
mainland_n |
A numeric stating the number of mainland species, that is the number of species that can potentially colonize the island. If using a clade-specific diversity dependence, this value is set to 1. If using an island-wide diversity dependence, this value is set to the number of mainland species. |
trait_pars |
A named list containing diversification rates considering
two trait states created by
|
island_spec |
Matrix with current state of simulation containing number of species. |
a named list with the updated effective rates.
update_max_rates()
Other rate calculations:
DAISIE_plot_area()
,
get_ana_rate()
,
get_ext_rate()
,
get_immig_rate()
,
island_area_vector()
,
island_area()
,
update_max_rates()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.