libspatialSEIR
0.1
Bayesian Spatial SEIR Modeling
|
#include <LSS_Samplers.hpp>
Public Member Functions | |
ParameterHybridSampler (ModelContext *context, std::vector< ParameterFullConditional * > parameterFullConditionals, std::vector< double * > parameters, int samplerType) | |
void | drawSample () |
int | getSamplerType () |
~ParameterHybridSampler () | |
Public Member Functions inherited from SpatialSEIR::Sampler | |
virtual | ~Sampler () |
Public Attributes | |
ModelContext ** | context |
int * | samplerType |
int * | totalParamSize |
double * | parameterCache |
std::vector < ParameterFullConditional * > * | parameterFullConditionals |
std::vector< double * > * | parameters |
The ParameterHybridSampler class is an experimental approach to reducing autocorrelation by sampling parameters together.
SpatialSEIR::ParameterHybridSampler::ParameterHybridSampler | ( | ModelContext * | context, |
std::vector< ParameterFullConditional * > | parameterFullConditionals, | ||
std::vector< double * > | parameters, | ||
int | samplerType | ||
) |
SpatialSEIR::ParameterHybridSampler::~ParameterHybridSampler | ( | ) |
|
virtual |
Implements SpatialSEIR::Sampler.
|
virtual |
Implements SpatialSEIR::Sampler.
ModelContext** SpatialSEIR::ParameterHybridSampler::context |
double* SpatialSEIR::ParameterHybridSampler::parameterCache |
std::vector<ParameterFullConditional*>* SpatialSEIR::ParameterHybridSampler::parameterFullConditionals |
std::vector<double*>* SpatialSEIR::ParameterHybridSampler::parameters |
int* SpatialSEIR::ParameterHybridSampler::samplerType |
int* SpatialSEIR::ParameterHybridSampler::totalParamSize |