bool HasContactAndTransmission(double contact_rate, double transmission_probability)
Check if two individuals have contact and transmission.
bool HasTransmission(double transmission_probability)
Check whether transmission occurs.
Processes the contacts between persons and determines whether transmission occurs.
double RateToProbability(double rate)
Convert rate into probability.
std::function< double()> m_uniform01_generator
Random number generator: double in [0.0, 1.0)
double operator()()
Make a draw on the uniform generator.
ContactHandler(std::function< double()> gen)
Constructor sets the transmission rate and random number generator.
Namespace for the simulator and related classes.
bool HasContact(double contact_rate)
Check if two individuals have contact.