crbd.tppl
function crbd
Main model function
model function crbd(tree: Tree, rho: Real) => Real[]
type Globals
type Globals = Globals {
lambda: Real,
mu: Real,
rho: Real
}
function isDetected
Forward simulation determining whether a tree survives and is detected (sampled)
function isDetected(g: Globals, tBegin: Real) => Bool
function numTrialsUntilMRCADetection
Get an estimate of the probability of the MRCA being detected under given parameter values
function numTrialsUntilMRCADetection(g: Globals, tRoot: Real, mMax: Int) => Int
function simHiddenSpeciation
Simulate hidden speciation along an observed branch
function simHiddenSpeciation(g: Globals, startTime: Real, endTime: Real)
type alias Tree
type alias Tree = ClockTree
function walk
Simulate process ("walk") along the observed tree
function walk(g: Globals, parentAge: Real, node: Tree)