vaccinate#
- class vaccinate(*args, **kwargs)[source]#
Wrapper function for
vaccinate_prob()
andvaccinate_num()
. If thenum_doses
argument is used, will callvaccinate_num()
; else, callsvaccinate_prob()
.Examples:
vx1 = cv.vaccinate(vaccine='pfizer', days=30, prob=0.7) vx2 = cv.vaccinate(vaccine='pfizer', num_doses=100)