helpers.tppl
function compAge
function compAge(left: Event, right: Event) => Int
function is2
function is2(x: Int) => Bool
function n2s
function n2s(repertoire: Int[]) => Int
function ones
function ones(nOnes: Int) => Real[]
function rateMatrixToEmbeddedMarkovChain
function rateMatrixToEmbeddedMarkovChain(
qMatrix: Matrix[Real]
) => EmbeddedMarkovChainMatrix
function sampleNextEvent
function sampleNextEvent(
currState: Int,
embeddedQMatrix: EmbeddedMarkovChainMatrix
) => Int
function updateRepertoire
function updateRepertoire(currRep: Int[], event: Event, nhosts: Int) => Int[]