full-model.tppl
function allTimesValidBranch
Check if the branch is valid in the sense that the parasite has at least one host after each event in the ordered event sequence
function allTimesValidBranch(
currRep: Int[], eventSeq: Event[], eventIndex: Int, nEvents: Int, nhosts: Int
) => Bool
function fullModelWeight
This file contains functions for calculating the point wise density (excess) for the full model.
function fullModelWeight(
nextIndex: Int,
currRep: Int[],
finalRep: Int[],
currAge: Real,
finalAge: Real,
eventSeq: Event[],
nEvents: Int,
nhosts: Int,
modelParams: ModelParams
) => Real
function getGainRate
function getGainRate (
repertoire: Int[],
hostIndex: Int,
modelParams: ModelParams
) => Real
function getLossRate
function getLossRate(
repertoire: Int[], hostIndex: Int, modelParams: ModelParams
) => Real
function getRate
function getRate(currRep: Int[], nextEvent: Event, modelParams: ModelParams) => Real
function getTotalRate
function getTotalRate(
currRep: Int[], modelParams: ModelParams, nhosts: Int
) => Real