libspatialSEIR
0.1
Bayesian Spatial SEIR Modeling
|
#include <LSS_Samplers.hpp>
Public Member Functions | |
IndexedCompartmentSliceSampler (ModelContext *context, CompartmentFullConditional *compartmentFC, int *compartmentData) | |
void | drawSample () |
int | getSamplerType () |
~IndexedCompartmentSliceSampler () | |
Public Member Functions inherited from SpatialSEIR::Sampler | |
virtual | ~Sampler () |
Public Attributes | |
ModelContext ** | context |
CompartmentFullConditional ** | compartmentFC |
int ** | indexLength |
int ** | compartmentData |
int ** | indexList |
The IndexedCompartmentSliceSampler class is child of the Sampler class which draws samples from the posterior distribution of the various transition compartments using a partial slice sampling 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::IndexedCompartmentSliceSampler::IndexedCompartmentSliceSampler | ( | ModelContext * | context, |
CompartmentFullConditional * | compartmentFC, | ||
int * | compartmentData | ||
) |
SpatialSEIR::IndexedCompartmentSliceSampler::~IndexedCompartmentSliceSampler | ( | ) |
|
virtual |
Implements SpatialSEIR::Sampler.
|
virtual |
Implements SpatialSEIR::Sampler.
int** SpatialSEIR::IndexedCompartmentSliceSampler::compartmentData |
CompartmentFullConditional** SpatialSEIR::IndexedCompartmentSliceSampler::compartmentFC |
ModelContext** SpatialSEIR::IndexedCompartmentSliceSampler::context |
int** SpatialSEIR::IndexedCompartmentSliceSampler::indexLength |
int** SpatialSEIR::IndexedCompartmentSliceSampler::indexList |