fork

compartment_model.fork(*edges)

Define a forked transition: a set of edges that come from the same compartment but go to different compartments. It is assumed the edges will share a “base rate”– a common sub-expression among all edge rates – and that each edge in the fork is given a proportion on that base rate.

For example, consider two edges given rates:

  1. delta * EXPOSED * rho
  2. delta * EXPOSED * (1 - rho)

delta * EXPOSED is the base rate and rho describes the proportional split for each edge.

Parameters

edges: *EdgeDef = ()

All edges that participate in the fork, as a var-arg.

Returns

ForkDef

The fork definition.