libspatialSEIR  0.1
Bayesian Spatial SEIR Modeling
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | Public Attributes | List of all members
SpatialSEIR::IndexedCompartmentSliceSampler Class Reference

#include <LSS_Samplers.hpp>

Inheritance diagram for SpatialSEIR::IndexedCompartmentSliceSampler:
SpatialSEIR::Sampler

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
 

Detailed Description

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.

Constructor & Destructor Documentation

SpatialSEIR::IndexedCompartmentSliceSampler::IndexedCompartmentSliceSampler ( ModelContext context,
CompartmentFullConditional compartmentFC,
int *  compartmentData 
)
SpatialSEIR::IndexedCompartmentSliceSampler::~IndexedCompartmentSliceSampler ( )

Member Function Documentation

void SpatialSEIR::IndexedCompartmentSliceSampler::drawSample ( )
virtual

Implements SpatialSEIR::Sampler.

int SpatialSEIR::IndexedCompartmentSliceSampler::getSamplerType ( )
virtual

Implements SpatialSEIR::Sampler.

Member Data Documentation

int** SpatialSEIR::IndexedCompartmentSliceSampler::compartmentData
CompartmentFullConditional** SpatialSEIR::IndexedCompartmentSliceSampler::compartmentFC
ModelContext** SpatialSEIR::IndexedCompartmentSliceSampler::context
int** SpatialSEIR::IndexedCompartmentSliceSampler::indexLength
int** SpatialSEIR::IndexedCompartmentSliceSampler::indexList

The documentation for this class was generated from the following file: