25 #include <boost/property_tree/ptree.hpp> 26 #include <spdlog/spdlog.h> 48 static std::shared_ptr<Population>
build(
49 const boost::property_tree::ptree& pt_config,
50 const boost::property_tree::ptree& pt_disease,
51 const boost::property_tree::ptree& pt_pop,
56 static std::vector<double>
getDistribution(
const boost::property_tree::ptree& pt_root,
const std::string& xml_tag);
59 static unsigned int sample(
util::Random& rng,
const std::vector<double>& distribution);
Initializes Population objects.
Time Dependent Person DataType.
static unsigned int sample(util::Random &rng, const std::vector< double > &distribution)
Sample from the distribution.
Header file for the core Population class.
Header for the Random Number Generator class.
static std::shared_ptr< Population > build(const boost::property_tree::ptree &pt_config, const boost::property_tree::ptree &pt_disease, const boost::property_tree::ptree &pt_pop, util::Random &rng)
Initializes a Population: add persons, set immunity, seed infection.
static std::vector< double > getDistribution(const boost::property_tree::ptree &pt_root, const std::string &xml_tag)
Get distribution associateed with tag values.
The random number generator.