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::IndexedCompartmentBinomialMetropolisSampler Class Reference

#include <LSS_Samplers.hpp>

Inheritance diagram for SpatialSEIR::IndexedCompartmentBinomialMetropolisSampler:
SpatialSEIR::Sampler

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
 

Detailed Description

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.

Constructor & Destructor Documentation

SpatialSEIR::IndexedCompartmentBinomialMetropolisSampler::IndexedCompartmentBinomialMetropolisSampler ( ModelContext context,
CompartmentFullConditional compartmentFC,
int *  compartmentData,
int *  compartmentFrom,
int *  compartmentTo,
double *  probabilityVector,
int  probabilityVectorLen 
)
SpatialSEIR::IndexedCompartmentBinomialMetropolisSampler::~IndexedCompartmentBinomialMetropolisSampler ( )

Member Function Documentation

void SpatialSEIR::IndexedCompartmentBinomialMetropolisSampler::drawSample ( )
virtual

Implements SpatialSEIR::Sampler.

void SpatialSEIR::IndexedCompartmentBinomialMetropolisSampler::genProposal ( )
int SpatialSEIR::IndexedCompartmentBinomialMetropolisSampler::getSamplerType ( )
virtual

Implements SpatialSEIR::Sampler.

Member Data Documentation

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

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