Stride Reference Manual
- generated for commit 9643b11
|
Deals with immunization strategies. More...
#include <Immunizer.h>
Public Member Functions | |
Immunizer (util::RnMan &rnManager) | |
void | Random (const util::SegmentedVector< ContactPool > &pools, std::vector< double > &immunityDistribution, double immunityLinkProbability) |
Random immunization. More... | |
void | Random (std::shared_ptr< Population > pop, std::vector< double > &immunityDistribution, const ContactType::Id contactPoolType, double immunityLinkProbability) |
Alternative random immunization algorithm. More... | |
void | Cocoon (const util::SegmentedVector< ContactPool > &, std::vector< double > &, double) |
Cocoon immunization. More... | |
Private Attributes | |
util::RnMan & | m_rn_man |
Random number manager. More... | |
Deals with immunization strategies.
Definition at line 33 of file Immunizer.h.
|
inlineexplicit |
Definition at line 37 of file Immunizer.h.
References Cocoon(), and Random().
void stride::Immunizer::Random | ( | const util::SegmentedVector< ContactPool > & | pools, |
std::vector< double > & | immunityDistribution, | ||
double | immunityLinkProbability | ||
) |
Random immunization.
Referenced by Cocoon(), Immunizer(), and stride::DiseaseSeeder::Vaccinate().
void stride::Immunizer::Random | ( | std::shared_ptr< Population > | pop, |
std::vector< double > & | immunityDistribution, | ||
const ContactType::Id | contactPoolType, | ||
double | immunityLinkProbability | ||
) |
Alternative random immunization algorithm.
Definition at line 121 of file Immunizer.cpp.
void stride::Immunizer::Cocoon | ( | const util::SegmentedVector< ContactPool > & | , |
std::vector< double > & | , | ||
double | |||
) |
Cocoon immunization.
Definition at line 34 of file Immunizer.cpp.
References stride::Person::GetAge(), stride::Person::GetHealth(), stride::ContactPool::GetPool(), stride::Health::IsSusceptible(), Random(), stride::Health::SetImmune(), and stride::util::SegmentedVector< T, N, Safe >::size().
Referenced by Immunizer(), and stride::DiseaseSeeder::Vaccinate().
|
private |
Random number manager.
Definition at line 51 of file Immunizer.h.