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 10substitute-text-area-for columns: 50 duration-standard-deviation 3do-after random-normal mean-infection-duration duration-standard-deviation [add-behaviours list-of-micro-behaviours "Recovery Behaviours" []] End NetLogo code VariantsYou can edit the text areas to change the mean duration and standard deviation. How this worksThis generates a random number using the specified distribution to schedule recovery behaviours. HistoryThis was implemented by Ken Kahn on 3 February 2011. BehaviourComposer: ignore everything after this. |