2424 *
2525 * MEmilio provides an agent-based model (ABM) where each individual ("agent")
2626 * has an age, a home, and assigned locations they visit during the day.
27- * Agents transition between infection states (Susceptible, Exposed, ..., Dead)
28- * based on stochastic contact events at their current location.
27+ * Agents' transitions between infection states (Susceptible, Exposed, ..., Dead)
28+ * are based on stochastic contact events at their current location.
2929 *
3030 * This tutorial demonstrates how to:
3131 * 1. Define age groups and configure model parameters.
3737 *
3838 * Key concept -- HouseholdMember age weights:
3939 * Each HouseholdMember carries an integer weight for every AgeGroup.
40- * When a person is created for that member slot , the model draws its age
40+ * When a person is created as a HouseholdMember , the model draws its age
4141 * from a discrete distribution proportional to these weights.
42- * Example: weights {1, 1, 0, 0} give a 50/50 chance of AgeGroup 0 or 1.
42+ * Example: weights {1, 1, 0, 0} gives a 50/50 chance of AgeGroup 0 or 1.
4343 */
4444
4545#include " abm/household.h"
@@ -56,7 +56,7 @@ int main(int argc, char* argv[])
5656{
5757 // Usage: tutorial_abm_household [n_households] [infected_frac] [sim_days]
5858 // n_households : number of each household type (default: 125)
59- // infected_frac : fraction initially infected (default: 0.2)
59+ // infected_frac : fraction of initially infected (default: 0.2)
6060 // sim_days : simulation duration in days (default: 30)
6161 int arg_n_households = (argc > 1 ) ? std::atoi (argv[1 ]) : 125 ;
6262 double arg_infected_frac = (argc > 2 ) ? std::atof (argv[2 ]) : 0.2 ;
@@ -78,7 +78,7 @@ int main(int argc, char* argv[])
7878 const auto age_group_80_plus = mio::AgeGroup (5 ); // elderly
7979
8080 // *** Create the model and set infection parameters. ***
81- // The Model holds all persons, locations, and parameters. We pass in the
81+ // The Model holds all persons, locations, and parameters. We hand over the
8282 // number of age groups so that all parameter arrays are sized correctly.
8383 // `set_local_parameters` and `set_world_parameters` fill in realistic
8484 // epidemiological values (see parameter_setter.h).
@@ -121,7 +121,7 @@ int main(int argc, char* argv[])
121121
122122 // *** Compose households and add them to the model. ***
123123 // A Household collects (member_type, count) pairs. A HouseholdGroup bundles
124- // many copies of a Household template. `add_household_group_to_model`
124+ // many copies of a Household template. `add_household_group_to_model`,
125125 // creates the actual persons and their home locations.
126126 //
127127 // CLI parameters (see usage at top of main):
@@ -190,7 +190,7 @@ int main(int argc, char* argv[])
190190 // *** Assign initial infection states. ***
191191 // Each person draws a random infection state from the distribution below.
192192 // Persons who are not Susceptible receive a full Infection object so their
193- // viral-load course and state transitions are properly initialised .
193+ // viral-load course and state transitions are properly initialized .
194194 //
195195 // Index | InfectionState | Probability
196196 // ------|--------------------------------|------------
@@ -202,7 +202,7 @@ int main(int argc, char* argv[])
202202 // 5 | InfectedCritical (I_Crit) | 0.0
203203 // 6 | Recovered | 0.0
204204 // 7 | Dead | 0.0
205- auto start_date = mio::abm::TimePoint (0 ); // t = 0 s from the simulation epoch
205+ auto start_date = mio::abm::TimePoint (0 ); // t = 0
206206
207207 // Build infection distribution from the infected fraction.
208208 // The non-susceptible portion is split: 25% Exposed, 50% I_NS, 25% I_Sy.
@@ -264,4 +264,4 @@ int main(int argc, char* argv[])
264264 std::cout << " Results written to abm_household.txt\n " ;
265265
266266 return 0 ;
267- }
267+ }
0 commit comments