1 #ifndef SPATIALSEIR_INCLUDEFILES
2 #define SPATIALSEIR_INCLUDEFILES
8 #ifndef FULL_CONDITIONAL_INC
9 #define FULL_CONDITIONAL_INC
11 #define LSS_COMPARTMENT_FULL_CONDITIONAL_TYPE 1
12 #define LSS_INIT_COMPARTMENT_FULL_CONDITIONAL_TYPE 2
13 #define LSS_PARAMETER_FULL_CONDITIONAL_TYPE 3
20 class CompartmentalModelMatrix;
21 class CovariateMatrix;
91 virtual void sample(
int verbose) = 0;
93 virtual void setValue(
long double value) = 0;
121 virtual int evalCPU(
int i,
int j) = 0;
123 virtual void sample(
int verbose) = 0;
125 virtual void setValue(
long double value) = 0;
154 virtual void sample(
int verbose) = 0;
156 virtual void setValue(
long double value) = 0;
184 virtual void sample(
int verbose) = 0;
186 virtual void setValue(
long double value) = 0;
Definition: LSS_FullConditional.hpp:115
virtual int calculateRelevantCompartments()=0
double * betaWidth
Definition: LSS_FullConditional.hpp:46
virtual void sample(int verbose)=0
int * R0
Definition: LSS_FullConditional.hpp:74
virtual long double getValue()=0
virtual int getFullConditionalType()=0
virtual long double getValue()=0
void updateSamplingParameters(double desiredRatio, double targetWidth, double proportionChange)
Definition: FullConditional.cpp:150
virtual long double getValue()=0
int * S0
Definition: LSS_FullConditional.hpp:71
Definition: LSS_FullConditional.hpp:177
int * accepted
Definition: LSS_FullConditional.hpp:104
int * E0
Definition: LSS_FullConditional.hpp:72
double P_IR_priorAlpha
Definition: LSS_FullConditional.hpp:32
double * gammaIrWidth
Definition: LSS_FullConditional.hpp:50
std::vector< Sampler * > * samplers
Definition: LSS_FullConditional.hpp:101
int * numLocations
Definition: LSS_FullConditional.hpp:75
Definition: LSS_FullConditional.hpp:147
double P_EI_priorBeta
Definition: LSS_FullConditional.hpp:31
void updateSamplingParameters(double desiredRatio, double targetWidth, double proportionChange)
Definition: FullConditional.cpp:176
virtual int calculateRelevantCompartments_OCL()=0
double P_IR_priorBeta
Definition: LSS_FullConditional.hpp:33
struct containing initial slice sampling tuning parameters.
Definition: LSS_FullConditional.hpp:39
virtual int calculateRelevantCompartments()=0
double * betaPrsWidth
Definition: LSS_FullConditional.hpp:47
virtual int calculateRelevantCompartments()=0
double * steadyStateConstraintPrecision
Definition: LSS_FullConditional.hpp:134
int getFullConditionalType()
Definition: FullConditional.cpp:108
int * varLen
Definition: LSS_FullConditional.hpp:162
double * S_starWidth
Definition: LSS_FullConditional.hpp:41
double acceptanceRatio()
Definition: FullConditional.cpp:72
virtual int calculateRelevantCompartments_OCL()=0
int * samples
Definition: LSS_FullConditional.hpp:103
~InitData()
Definition: FullConditional.cpp:63
void setSamplerType(int type)
Definition: FullConditional.cpp:77
double P_EI_priorAlpha
Definition: LSS_FullConditional.hpp:30
int getFullConditionalType()
Definition: FullConditional.cpp:98
double * I0Width
Definition: LSS_FullConditional.hpp:45
Definition: LSS_FullConditional.hpp:86
double Phi_priorBeta
Definition: LSS_FullConditional.hpp:35
virtual void setValue(long double value)=0
double * S0Width
Definition: LSS_FullConditional.hpp:44
virtual int calculateRelevantCompartments_OCL()=0
virtual void updateSamplingParameters(double desiredRatio, double targetWidth, double proportionChange)=0
virtual ~ParameterFullConditional()
Definition: LSS_FullConditional.hpp:151
Sampler ** currentSampler
Definition: LSS_FullConditional.hpp:102
double * E_starWidth
Definition: LSS_FullConditional.hpp:42
virtual void setValue(long double value)=0
virtual void sample(int verbose)=0
virtual long double getValue()=0
virtual void setValue(long double value)=0
Definition: LSS_Samplers.hpp:46
struct containing hyperparameters for beta, betaP_RS, P_EI, and P_IR
Definition: LSS_FullConditional.hpp:26
double * phiWidth
Definition: LSS_FullConditional.hpp:51
virtual ~InitCompartmentFullConditional()
Definition: LSS_FullConditional.hpp:181
double betaPrsPriorPrecision
Definition: LSS_FullConditional.hpp:29
void populate(int *_S0, int *_E0, int *_I0, int *_R0, int *nLoc)
Definition: FullConditional.cpp:40
virtual ~CompartmentFullConditional()
Definition: LSS_FullConditional.hpp:119
virtual void setValue(long double value)=0
double betaPriorPrecision
Definition: LSS_FullConditional.hpp:28
void updateSamplingParameters(double desiredRatio, double targetWidth, double proportionChange)
Definition: FullConditional.cpp:120
virtual void sample(int verbose)=0
double * gammaEiWidth
Definition: LSS_FullConditional.hpp:49
double * sliceWidth
Definition: LSS_FullConditional.hpp:99
Simple class containing the starting compartment sizes.
Definition: LSS_FullConditional.hpp:55
int * I0
Definition: LSS_FullConditional.hpp:73
virtual void sample(int verbose)=0
double * rhoWidth
Definition: LSS_FullConditional.hpp:48
int getFullConditionalType()
Definition: FullConditional.cpp:103
virtual ~FullConditional()
Definition: LSS_FullConditional.hpp:90
virtual int calculateRelevantCompartments_OCL()=0
InitData()
Definition: FullConditional.cpp:35
virtual int calculateRelevantCompartments()=0
double Phi_priorAlpha
Definition: LSS_FullConditional.hpp:34
double * R_starWidth
Definition: LSS_FullConditional.hpp:43