sim_decide_event: Determines the event

Description Usage Arguments Value Author(s)

View source: R/sls_sim_utils.R

Description

sls_sim module

Usage

1
sim_decide_event(data, clade, deltas, l_2)

Arguments

data

contains all the information about the simulated process

clade

the id of the clade

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

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.

Value

the event

Author(s)

Giovanni Laudanno


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