libspatialSEIR
0.1
Bayesian Spatial SEIR Modeling
|
#include <LSS_Samplers.hpp>
Public Member Functions | |
IndexedCompartmentMetropolisSampler (ModelContext *context, CompartmentFullConditional *compartmentFC, int *compartmentData) | |
void | drawSample () |
int | getSamplerType () |
~IndexedCompartmentMetropolisSampler () | |
Public Member Functions inherited from SpatialSEIR::Sampler | |
virtual | ~Sampler () |
Public Attributes | |
ModelContext ** | context |
CompartmentFullConditional ** | compartmentFC |
int ** | indexLength |
int ** | compartmentData |
int ** | indexList |
The IndexedCompartmentMetropolisSampler class is child of the Sampler class which draws samples from the posterior distribution of the various transition compartments using a partial Metropolis proposal, with proposal indices determined by the ModelContext to which it belongs. This sampler is designed to reduce autocorrelation by letting all compartments move together using the same indices.
SpatialSEIR::IndexedCompartmentMetropolisSampler::IndexedCompartmentMetropolisSampler | ( | ModelContext * | context, |
CompartmentFullConditional * | compartmentFC, | ||
int * | compartmentData | ||
) |
SpatialSEIR::IndexedCompartmentMetropolisSampler::~IndexedCompartmentMetropolisSampler | ( | ) |
|
virtual |
Implements SpatialSEIR::Sampler.
|
virtual |
Implements SpatialSEIR::Sampler.
int** SpatialSEIR::IndexedCompartmentMetropolisSampler::compartmentData |
CompartmentFullConditional** SpatialSEIR::IndexedCompartmentMetropolisSampler::compartmentFC |
ModelContext** SpatialSEIR::IndexedCompartmentMetropolisSampler::context |
int** SpatialSEIR::IndexedCompartmentMetropolisSampler::indexLength |
int** SpatialSEIR::IndexedCompartmentMetropolisSampler::indexList |