Makes the event happen by updating island species matrix and species IDs. What event happens is determined by the sampling in the algorithm.
DAISIE_sim_update_state_cr(
timeval,
total_time,
possible_event,
maxspecID,
mainland_spec,
island_spec,
stt_table
)
The updated state of the system, which is a list with the
island_spec
matrix, an integer maxspecID
with the most recent
ID of species and the stt_table
, a matrix with the current species
through time table.
Numeric defining current time of simulation.
Numeric defining the length of the simulation in time units.
Numeric defining what event will happen.
Current species IDs.
Number of mainland species.
Matrix with current state of simulation containing number of species.
Matrix with number of species at each time step.
DAISIE_sim_core_cr, DAISIE_sim_update_state_cr