|
Stride Reference Manual
- generated for commit 9643b11
|
Seeds the population with Health data. More...
#include <HealthSeeder.h>

Public Member Functions | |
| HealthSeeder (const boost::property_tree::ptree &diseasePt) | |
| Constructor requires diease data. More... | |
| void | Seed (const std::shared_ptr< Population > &pop, std::vector< ContactHandler > &handlers) |
| Seeds the population with Health data. More... | |
Private Member Functions | |
| 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. More... | |
| unsigned short int | Sample (const std::vector< double > &distribution, double random01) |
| Sample for each of the health data item individually. More... | |
Private Attributes | |
| std::vector< double > | m_start_symptomatic |
| std::vector< double > | m_time_asymptomatic |
| std::vector< double > | m_time_infectious |
| std::vector< double > | m_time_symptomatic |
Seeds the population with Health data.
Definition at line 36 of file HealthSeeder.h.
|
explicit |
Constructor requires diease data.
Definition at line 36 of file HealthSeeder.cpp.
References AssertThrow, GetDistribution(), m_start_symptomatic, m_time_asymptomatic, m_time_infectious, and m_time_symptomatic.

| void stride::HealthSeeder::Seed | ( | const std::shared_ptr< Population > & | pop, |
| std::vector< ContactHandler > & | handlers | ||
| ) |
Seeds the population with Health data.
Definition at line 70 of file HealthSeeder.cpp.
References m_start_symptomatic, m_time_asymptomatic, m_time_infectious, m_time_symptomatic, and Sample().
Referenced by stride::SimBuilder::Build().


|
private |
Utility method to etract distribution from data in ptree.
Definition at line 50 of file HealthSeeder.cpp.
Referenced by HealthSeeder().

|
private |
Sample for each of the health data item individually.
Definition at line 58 of file HealthSeeder.cpp.
Referenced by Seed().

|
private |
Definition at line 54 of file HealthSeeder.h.
Referenced by HealthSeeder(), and Seed().
|
private |
Definition at line 55 of file HealthSeeder.h.
Referenced by HealthSeeder(), and Seed().
|
private |
Definition at line 56 of file HealthSeeder.h.
Referenced by HealthSeeder(), and Seed().
|
private |
Definition at line 57 of file HealthSeeder.h.
Referenced by HealthSeeder(), and Seed().