class historical_wave(days_prior, prob, dist=None, subtarget=None, variant=None, **kwargs)[source]#

Bases: Intervention

Imprint a historical (pre t=0) wave of infections in the population NAbs

  • days_prior (int/str/list) – offset relative to t=0 for the wave (median/par1 value) or median date if a string like “2021-11-15”

  • prob (float/list) – probability of infection during the wave

  • dist (dict/list) – passed to covasim.utils.sample to set wave shape (default gaussian with FWHM of 5 weeks)

  • subtarget (dict/list) – subtarget intervention to people with particular indices (see test_num() for details)

  • variants (str/list) – name of variant associated with the wave

  • kwargs (dict) – passed to Intervention()


cv.Sim(interventions=cv.historical_wave(120, 0.30)).run().plot()

New in version 3.1.0.