libspatialSEIR
0.1
Bayesian Spatial SEIR Modeling
|
#include <LSS_Samplers.hpp>
Public Member Functions | |
IndexedCompartmentBinomialMetropolisSampler (ModelContext *context, CompartmentFullConditional *compartmentFC, int *compartmentData, int *compartmentFrom, int *compartmentTo, double *probabilityVector, int probabilityVectorLen) | |
void | drawSample () |
int | getSamplerType () |
void | genProposal () |
~IndexedCompartmentBinomialMetropolisSampler () | |
Public Member Functions inherited from SpatialSEIR::Sampler | |
virtual | ~Sampler () |
Public Attributes | |
ModelContext ** | context |
CompartmentFullConditional ** | compartmentFC |
int ** | indexLength |
int ** | indexList |
int ** | compartmentData |
int ** | compartmentFrom |
int ** | compartmentTo |
double ** | probabilityVector |
int * | probabilityVectorLen |
The IndexedCompartmentBinomialMetropolisSampler 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, and uses the ModelContext index to update only a portion of the compartment each iteration.
SpatialSEIR::IndexedCompartmentBinomialMetropolisSampler::IndexedCompartmentBinomialMetropolisSampler | ( | ModelContext * | context, |
CompartmentFullConditional * | compartmentFC, | ||
int * | compartmentData, | ||
int * | compartmentFrom, | ||
int * | compartmentTo, | ||
double * | probabilityVector, | ||
int | probabilityVectorLen | ||
) |
SpatialSEIR::IndexedCompartmentBinomialMetropolisSampler::~IndexedCompartmentBinomialMetropolisSampler | ( | ) |
|
virtual |
Implements SpatialSEIR::Sampler.
void SpatialSEIR::IndexedCompartmentBinomialMetropolisSampler::genProposal | ( | ) |
|
virtual |
Implements SpatialSEIR::Sampler.
int** SpatialSEIR::IndexedCompartmentBinomialMetropolisSampler::compartmentData |
CompartmentFullConditional** SpatialSEIR::IndexedCompartmentBinomialMetropolisSampler::compartmentFC |
int** SpatialSEIR::IndexedCompartmentBinomialMetropolisSampler::compartmentFrom |
int** SpatialSEIR::IndexedCompartmentBinomialMetropolisSampler::compartmentTo |
ModelContext** SpatialSEIR::IndexedCompartmentBinomialMetropolisSampler::context |
int** SpatialSEIR::IndexedCompartmentBinomialMetropolisSampler::indexLength |
int** SpatialSEIR::IndexedCompartmentBinomialMetropolisSampler::indexList |
double** SpatialSEIR::IndexedCompartmentBinomialMetropolisSampler::probabilityVector |
int* SpatialSEIR::IndexedCompartmentBinomialMetropolisSampler::probabilityVectorLen |