libspatialSEIR
0.1
Bayesian Spatial SEIR Modeling
|
#include <LSS_Samplers.hpp>
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 |
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.
SpatialSEIR::ParameterDecorrelationSampler::ParameterDecorrelationSampler | ( | ModelContext * | context, |
ParameterFullConditional * | paramFC, | ||
double * | param, | ||
CovariateMatrix * | proposalMatrix | ||
) |
SpatialSEIR::ParameterDecorrelationSampler::~ParameterDecorrelationSampler | ( | ) |
|
virtual |
Implements SpatialSEIR::Sampler.
|
virtual |
Implements SpatialSEIR::Sampler.
ModelContext** SpatialSEIR::ParameterDecorrelationSampler::context |
double** SpatialSEIR::ParameterDecorrelationSampler::param |
ParameterFullConditional** SpatialSEIR::ParameterDecorrelationSampler::paramFC |
double* SpatialSEIR::ParameterDecorrelationSampler::proposalCache |
double* SpatialSEIR::ParameterDecorrelationSampler::proposalCache2 |
CovariateMatrix** SpatialSEIR::ParameterDecorrelationSampler::proposalMatrix |