DAISIE_sim_update_state_time_dependent: Updates state of island given sampled event

Description Usage Arguments Value See Also

View source: R/DAISIE_sim_update_state_time_dependent.R

Description

Makes the event happen by updating island species matrix and species IDs. What event happens is determined by the sampling in the algorithm.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
DAISIE_sim_update_state_time_dependent(
  timeval,
  totaltime,
  possible_event,
  maxspecID,
  mainland_spec,
  island_spec,
  stt_table,
  rates,
  max_rates
)

Arguments

timeval

Numeric defining current time of simulation.

totaltime

Numeric defining the length of the simulation in time units.

possible_event

Numeric defining what event will happen.

maxspecID

Current species IDs.

mainland_spec

Number of mainland species.

island_spec

Matrix with current state of simulation containing number of species.

stt_table

Matrix with number of species at each time step.

rates

named list of numeric rates as returned by update_rates.

max_rates

named list of numeric max rates as returned by update_rates.

Value

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.

See Also

DAISIE_sim_core_time_dependent


xieshu95/DAISIE_new documentation built on March 20, 2020, 5:31 a.m.