This is an Rcpp implementation of the main simulation. It
is meant to be called by meta_sim
.
metasim_base(n_pop, n_t, spawners_0, b, epsilon_mat, A_params, add_straying,
stray_mat, assess_years, r_escp_goals, sigma_impl, add_impl_error, decrease_b,
debug)
The number of years.
Number of populations
A vector of spawner abundances at the start of the simulation. Length of the vector should equal the number of populations.
Ricker density-dependent parameter. A vector with one numeric value per population.
A matrix of recruitment deviations.
A matrix of Ricker a parameters
Implement straying between populations?
A straying matrix.
A vector of years to assess a and b in
A matrix of escapement goals.
Implementation standard deviation for the implementation error beta distribution.
Add implementation error?
Implementation error is derived using
impl_error
.
A numeric value to decrease all streams by each generation. This is intended to be used to simulate habitat loss, for example though stream flow reduction with climate change.
Boolean. Should some debuging messages be turned on?