libspatialSEIR
0.1
Bayesian Spatial SEIR Modeling
|
#include <LSS_Samplers.hpp>
Public Member Functions | |
CompartmentBinomialMetropolisSampler (ModelContext *context, CompartmentFullConditional *compartmentFC, int *compartmentData, int *compartmentFrom, int *compartmentTo, double *probabilityVector, int probabilityVectorLen) | |
void | drawSample () |
int | getSamplerType () |
void | genProposal () |
~CompartmentBinomialMetropolisSampler () | |
Public Member Functions inherited from SpatialSEIR::Sampler | |
virtual | ~Sampler () |
Public Attributes | |
ModelContext ** | context |
CompartmentFullConditional ** | compartmentFC |
int ** | compartmentData |
int ** | compartmentFrom |
int ** | compartmentTo |
double ** | probabilityVector |
int * | probabilityVectorLen |
The CompartmentBinomialMetropolisSampler class is child of the Sampler class which draws samples from the posterior distribution of the various transition compartments using a chain binomial proposal based on the parameters.
SpatialSEIR::CompartmentBinomialMetropolisSampler::CompartmentBinomialMetropolisSampler | ( | ModelContext * | context, |
CompartmentFullConditional * | compartmentFC, | ||
int * | compartmentData, | ||
int * | compartmentFrom, | ||
int * | compartmentTo, | ||
double * | probabilityVector, | ||
int | probabilityVectorLen | ||
) |
SpatialSEIR::CompartmentBinomialMetropolisSampler::~CompartmentBinomialMetropolisSampler | ( | ) |
|
virtual |
Implements SpatialSEIR::Sampler.
void SpatialSEIR::CompartmentBinomialMetropolisSampler::genProposal | ( | ) |
|
virtual |
Implements SpatialSEIR::Sampler.
int** SpatialSEIR::CompartmentBinomialMetropolisSampler::compartmentData |
CompartmentFullConditional** SpatialSEIR::CompartmentBinomialMetropolisSampler::compartmentFC |
int** SpatialSEIR::CompartmentBinomialMetropolisSampler::compartmentFrom |
int** SpatialSEIR::CompartmentBinomialMetropolisSampler::compartmentTo |
ModelContext** SpatialSEIR::CompartmentBinomialMetropolisSampler::context |
double** SpatialSEIR::CompartmentBinomialMetropolisSampler::probabilityVector |
int* SpatialSEIR::CompartmentBinomialMetropolisSampler::probabilityVectorLen |