sim_use_event: Update data and time given the event

Description Usage Arguments Value Author(s)

View source: R/sim_utils.R

Description

sim module

Usage

1
sim_use_event(data, clade, l_2, event, deltas)

Arguments

data

contains all the information about the simulated process

clade

the id of the clade

l_2

the matrix containing the information about how the subclades are nested into the main clade. See sls_sim.get_standard_l_2() for more info.

event

the event occurring in the simulated process at a given time

deltas

in the Doob-Gillespie algorithm, the collection of delta_n and delta_t, which are, respectively, the change in number of species and the waiting time for the next event to occur

Value

data

Author(s)

Giovanni Laudanno


richelbilderbeek/splendid documentation built on May 20, 2019, 9:42 a.m.