Algorithm 3.
Input: population V, pathogen prevalences | |
Output: {Ak}k=1..p | |
1 | A1 = A2 = ... Ap = |
2 | foreach k in 1... p do |
3 | foreach vi in V do |
4 | , identifying the pathogen-k class of vi in Domain. |
5 | τ := pk;t the corresponding pathogen-k prevalence rate in Range. |
6 | if Random(0, 1) < τ then |
7 | Ak := Ak ∪ {vi} |
8 | return {Ak}k=1..p |