1 #ifndef EVENTCONCEPTION_H
3 #define EVENTCONCEPTION_H
5 #include "simpactevent.h"
10 class EventConception :
public SimpactEvent
13 EventConception(Person *pPerson1, Person *pPerson2,
double relationshipFormationTime);
16 std::string getDescription(
double tNow)
const;
17 void writeLogs(
double tNow)
const;
18 void fire(
State *pState,
double t);
21 static void obtainConfig(ConfigWriter &config);
23 double calculateInternalTimeInterval(
const State *pState,
double t0,
double dt);
24 double solveForRealTimeInterval(
const State *pState,
double Tdiff,
double t0);
30 HazardFunctionConception(
const Person *pMan,
const Person *pWoman,
double WSF,
double tRef);
31 ~HazardFunctionConception();
33 static double m_alphaBase;
34 static double m_alphaAgeMan;
35 static double m_alphaAgeWoman;
36 static double m_alphaWSF;
41 double m_relationshipFormationTime;
46 static double getTMax(
const Person *pPerson1,
const Person *pPerson2);
49 #endif // EVENTCONCEPTION_H
This class both describes the simulation state and contains the core algorithm (as shown on the main ...
Definition: state.h:40
Helper class to read configuration settings, more advanced than ConfigReader.
Definition: configsettings.h:20
This class allows you to generate random numbers, and uses the GNU Scientific Library for this...
Definition: gslrandomnumbergenerator.h:16
Abstract base class for probability distribution implementations so that they can be used interchange...
Definition: probabilitydistribution.h:15
Helper class for time dependent exponential hazards.
Definition: hazardfunctionexp.h:15