23 #include <boost/property_tree/ptree_fwd.hpp> 40 explicit HealthSeeder(
const boost::property_tree::ptree& diseasePt);
43 void Seed(
const std::shared_ptr<Population>& pop, std::vector<ContactHandler>& handlers);
47 void GetDistribution(std::vector<double>& distribution,
const boost::property_tree::ptree& rootPt,
48 const std::string& xmlTag);
51 unsigned short int Sample(
const std::vector<double>& distribution,
double random01);
void Seed(const std::shared_ptr< Population > &pop, std::vector< ContactHandler > &handlers)
Seeds the population with Health data.
void GetDistribution(std::vector< double > &distribution, const boost::property_tree::ptree &rootPt, const std::string &xmlTag)
Utility method to etract distribution from data in ptree.
std::vector< double > m_time_symptomatic
std::vector< double > m_start_symptomatic
unsigned short int Sample(const std::vector< double > &distribution, double random01)
Sample for each of the health data item individually.
std::vector< double > m_time_asymptomatic
std::vector< double > m_time_infectious
HealthSeeder(const boost::property_tree::ptree &diseasePt)
Constructor requires diease data.
Namespace for the simulator and related classes.
Seeds the population with Health data.