powered by
For each encounter, simulate whether a new individual is infected.
drawBernouilli(p)
vector of size K, giving the probability that each encounter leads to an infection.
Boolean vector giving the newly infected individuals.