household.h File Reference

CPP API: household.h File Reference
household.h File Reference

A HouseholdMember has a vector with weighted age distribution from which the age can be calculated. More...

#include "abm/model.h"
#include "memilio/epidemiology/age_group.h"
#include "memilio/utils/custom_index_array.h"
#include <numeric>
#include <vector>
Include dependency graph for household.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mio::abm::Household
 A Household represented by a vector with HouseholdMembers. More...
 
class  mio::abm::HouseholdGroup
 A HouseholdGroup represented by different Households. More...
 
class  mio::abm::HouseholdMember
 A HouseholdMember represented by a weighted age distribution. More...
 

Namespaces

 mio
 A collection of classes to simplify handling of matrix shapes in meta programming.
 
 mio::abm
 

Functions

void mio::abm::add_household_group_to_model (Model &model, const HouseholdGroup &household_group)
 Adds Households from a HouseholdGroup to the Model. More...
 
void mio::abm::add_household_to_model (Model &model, const Household &household)
 Adds a specific Household to the Model. More...
 

Detailed Description

A HouseholdMember has a vector with weighted age distribution from which the age can be calculated.

A Household holds a vector with HouseholdMembers. A HouseholdGroup holds a vector with a tuple of a Household and the amount of times the Household is in the group. E.g. if 10 households hold a member of "child and parent" and that Household would be parentAndChildHousehold the vector would contain <parentAndChildHousehold, 10>. parentAndChildHousehold would consist of a vector with the HouseholdMembers parent and child and parent has, for example the age distribution {0,0,10,1,0,0} with respect to the AgeGroup class. The child would have, for example, {1,1,0,0,0}, meaning that the AgeGroups 0-4 and 5-14 are the only possible ages and are both equally likely.