sim_use_event: Update data and time given the event

Description Usage Arguments Value Author(s)

View source: R/sls_sim_utils.R

Description

sls_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 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


Giappo/sls documentation built on Feb. 1, 2021, 9:55 a.m.