27 vector<double> weights;
28 for (
const auto& loc : geoGrid) {
29 weights.push_back(loc->GetPopFraction());
32 if (weights.empty()) {
37 const auto dist = m_rn_man.GetDiscreteGenerator(weights, 0U);
38 auto pop = geoGrid.GetPopulation();
41 const auto loc = geoGrid[dist()];
42 AddPools(*loc, pop, ggConfig);
struct geopop::GeoGridConfig::@2 info
Configuration data mostly for generating a population, but also for computing the required number of ...
A Geographic grid of simulation region contains Locations that in turn contain an index to the Contac...
Namespace for the geographic and demograhic classes.
void Apply(GeoGrid &, const GeoGridConfig &)
Generate ContactPools for ContactType::Id as sepcified by data in GeoGridConfig.
unsigned int count_households
The number of households.
Namespace for the simulator and related classes.
Namespace to manage types of ContactPool.