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

#include <LSS_Samplers.hpp>

Inheritance diagram for SpatialSEIR::ParameterDecorrelationSampler:
SpatialSEIR::Sampler

Public Member Functions

 ParameterDecorrelationSampler (ModelContext *context, ParameterFullConditional *paramFC, double *param, CovariateMatrix *proposalMatrix)
 
void drawSample ()
 
int getSamplerType ()
 
 ~ParameterDecorrelationSampler ()
 
- Public Member Functions inherited from SpatialSEIR::Sampler
virtual ~Sampler ()
 

Public Attributes

double ** param
 
double * proposalCache
 
double * proposalCache2
 
ModelContext ** context
 
ParameterFullConditional ** paramFC
 
CovariateMatrix ** proposalMatrix
 

Detailed Description

The decorrelation sampler functions identically to the ParameterJointMetropolisSampler class, except that proposals are drawn from the null space of the relevant design matrix. This can be useful when the explanatory variables are correlated.

Constructor & Destructor Documentation

SpatialSEIR::ParameterDecorrelationSampler::ParameterDecorrelationSampler ( ModelContext context,
ParameterFullConditional paramFC,
double *  param,
CovariateMatrix proposalMatrix 
)
SpatialSEIR::ParameterDecorrelationSampler::~ParameterDecorrelationSampler ( )

Member Function Documentation

void SpatialSEIR::ParameterDecorrelationSampler::drawSample ( )
virtual

Implements SpatialSEIR::Sampler.

int SpatialSEIR::ParameterDecorrelationSampler::getSamplerType ( )
virtual

Implements SpatialSEIR::Sampler.

Member Data Documentation

ModelContext** SpatialSEIR::ParameterDecorrelationSampler::context
double** SpatialSEIR::ParameterDecorrelationSampler::param
ParameterFullConditional** SpatialSEIR::ParameterDecorrelationSampler::paramFC
double* SpatialSEIR::ParameterDecorrelationSampler::proposalCache
double* SpatialSEIR::ParameterDecorrelationSampler::proposalCache2
CovariateMatrix** SpatialSEIR::ParameterDecorrelationSampler::proposalMatrix

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