dot-rexp.coal: rexp.coal

.rexp.coalR Documentation

rexp.coal

Description

Draw exponential waiting time to next coalescent event of Lineages within a given Compartment. Note that if the waiting time exceeds this Compartment's transmission event, it will be discarded by sim.inner.tree().

Usage

.rexp.coal(k, comp, time)

Arguments

k:

integer, number of extant lineages

comp:

R6 object of class Compartment

time:

double, current simulation (reverse) time

Value

Random variate from waiting time distribution.


PoonLab/twt documentation built on Nov. 7, 2024, 4:18 a.m.