KJB
|
#include <sample_step.h>
Public Types | |
typedef Model_evaluator< Model > ::Type | Target_distribution |
typedef Gibbs_model_proposer < Model >::Type | Proposer |
typedef Model_dimension< Model > ::Type | Get_dimension |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((BaseModel< Model >)) | |
virtual const Target_distribution & | get_log_target () const =0 |
Returns a reference to the target distribution. Returned object must comply with the ModelEvaluator concept. More... | |
virtual const Proposer & | get_proposer () const =0 |
Returns a reference to the proposal mechanism. Returned object must comply with the GibbsModelProposer concept. More... | |
virtual const Get_dimension & | get_dimension_function () const =0 |
Returns a reference to a function that is used to obtain the dimension of the model. See Model_dimension for more info. More... | |
virtual Step_log< Model > | operator() (Model &m, double lt_m) const |
Runs a step of Gibbs on a model m. More... | |
virtual | ~Abstract_gibbs_step () |
Model | The model type. Must comply with BaseModel concept. |
Abstract_gibbs_step is a functor that runs a single step of Gibbs sampling on a model.
This class implements the logic for one Gibbs algorithm step. A subclass need only define the model's target distribution and a proposal mechanism. That is, subclasses must implement get_log_target() and get_proposer().
typedef Model_dimension<Model>::Type Abstract_gibbs_step< Model >::Get_dimension |
typedef Gibbs_model_proposer<Model>::Type Abstract_gibbs_step< Model >::Proposer |
typedef Model_evaluator<Model>::Type Abstract_gibbs_step< Model >::Target_distribution |
|
inlinevirtual |
Abstract_gibbs_step< Model >::BOOST_CONCEPT_ASSERT | ( | (BaseModel< Model >) | ) |
|
pure virtual |
Returns a reference to a function that is used to obtain the dimension of the model. See Model_dimension for more info.
Implemented in Basic_gibbs_step< Model >.
|
pure virtual |
Returns a reference to the target distribution. Returned object must comply with the ModelEvaluator concept.
Implemented in Basic_gibbs_step< Model >.
|
pure virtual |
Returns a reference to the proposal mechanism. Returned object must comply with the GibbsModelProposer concept.
Implemented in Basic_gibbs_step< Model >.
|
virtual |
Runs a step of Gibbs on a model m.
After this, m will hold the new state. Returns a structure describing the results of the step.