BehaviourComposer: ignore everything before this.
*Recover from the infection after a random time (mean and standard deviation specified).*
Begin micro-behaviour
**Schedule recovery**
Begin NetLogo code:
substitute-text-area-for columns: 50 mean-infection-duration 10
substitute-text-area-for columns: 50 duration-standard-deviation 3
do-after random-normal mean-infection-duration
duration-standard-deviation
[add-behaviours list-of-micro-behaviours "Recovery Behaviours" []]
End NetLogo code
# Variants
You can edit the text areas to change the mean duration and standard deviation.
# How this works
This generates a random number using the specified distribution to schedule recovery behaviours.
# History
This was implemented by Ken Kahn on 3 February 2011.
BehaviourComposer: ignore everything after this. |