Skip to content

laser.measles.biweekly.params

laser.measles.biweekly.params

Parameters for the biweekly model.

laser.measles.biweekly.params.BiweeklyParams

Bases: BaseModelParams

Parameters for the biweekly compartmental measles model (14-day timesteps).

Inherits all fields from BaseModelParams. Each tick represents 14 days, and the model tracks three SIR states (no explicit Exposed compartment).

Parameters:

Name Type Description Default
num_ticks int

Number of biweekly simulation steps (e.g., 26 ≈ 1 year, 130 ≈ 5 years).

required
seed int

Random seed for reproducibility. Default: 20250314.

required
start_time str

Simulation start in "YYYY-MM" format. Default: "2000-01".

required
verbose bool

Print detailed logging. Default: False.

required

Example:

1
2
3
```python
params = BiweeklyParams(num_ticks=26, seed=42, start_time="2000-01")
```

laser.measles.biweekly.params.BiweeklyParams.states property

SIR state names: ["S", "I", "R"].

laser.measles.biweekly.params.BiweeklyParams.time_step_days property

Duration of one tick in days (always 14 for the biweekly model).