Simpact Cyan
Population based event driven simulation using mNRM
|
Abstract base class which can be used for a hazard. More...
#include <hazardfunction.h>
Public Member Functions | |
virtual double | evaluate (double t)=0 |
Evaluate the hazard at time t . More... | |
virtual double | calculateInternalTimeInterval (double t0, double dt)=0 |
Map the real-world time dt to an internal time interval. More... | |
virtual double | solveForRealTimeInterval (double t0, double Tdiff)=0 |
For the specified internal time interval Tdiff, calculate the corresponding real-world time interval. More... | |
Abstract base class which can be used for a hazard.
If this way of implementing a hazard is used, the parameters for the hazard must be specified using the constructor of a derived class. The advantage of this is that the functions HazardFunction::evaluate, HazardFunction::calculateInternalTimeInterval and HazardFunction::solveForRealTimeInterval are implemented in the derived class, allowing you to use different hazard implementations as parameter to some other function.
|
pure virtual |
Map the real-world time dt
to an internal time interval.
This calculates:
Implemented in TimeLimitedHazardFunction, and HazardFunctionExp.
|
pure virtual |
Evaluate the hazard at time t
.
Implemented in TimeLimitedHazardFunction, and HazardFunctionExp.
|
pure virtual |
For the specified internal time interval Tdiff, calculate the corresponding real-world time interval.
This solves the following equation for :
Implemented in TimeLimitedHazardFunction, and HazardFunctionExp.