|
| BOOST_CONCEPT_ASSERT ((BaseModel< Model >)) |
|
| Multi_step_sampler (const Model &initial_state, double initial_log_target) |
|
template<class StepType > |
| Multi_step_sampler (const StepType &st, const Model &initial_state, double initial_log_target) |
|
| Multi_step_sampler (const std::vector< Step > &step_list, const std::vector< double > &prob_list, const Model &initial_state, double initial_log_target) |
|
template<class StepType > |
void | add_step (const StepType &step, double prob, const std::string &name="") |
| Add a new step with associated probability. This does NOT make sure probabilities add up to 1. It is up to the user to do that. More...
|
|
template<class StepType > |
void | add_step (StepType *step, double prob, const std::string &name="") |
| Add a new step with associated probability. This does NOT make sure probabilities add up to 1. It is up to the user to do that. More...
|
|
template<class StepType > |
void | add_step (const boost::shared_ptr< StepType > &step, double prob, const std::string &name="") |
| Add a new step with associated probability. This does NOT make sure probabilities add up to 1. It is up to the user to do that. More...
|
|
template<class StepType > |
const StepType & | get_step (size_t i) const |
|
| Abstract_sampler (const Model &initial_state, double initial_log_target) |
|
| BOOST_CONCEPT_ASSERT ((BaseModel< Model >)) |
|
virtual void | run (int num_iterations) |
| Runs the sampler. This function runs the sampler for the indicated number of iterations. At each iteration it chooses a sampler step using choose_step() and invokes it using its operator(). The best model is saved and returned. More...
|
|
Model & | current_state () |
|
const Model & | current_state () const |
|
double | current_log_target () const |
|
template<class Recorder > |
void | add_recorder (Recorder r) |
|
template<class Recorder > |
void | add_recorder (Recorder *r) |
|
template<class Callback > |
void | add_record_callback (Callback cb) |
|
template<class Recorder > |
const Recorder & | get_recorder (size_t i) const |
|
void | if_accept (const Callback &cb) |
|
void | if_reject (const Callback &cb) |
|
void | on_accept (const Callback &cb) |
|
void | on_reject (const Callback &cb) |
|
template<typename Model>
class Multi_step_sampler< Model >
- Template Parameters
-
Model | The model type. Must comply with BaseModel concept. |
A sampler that chooses from a set of moves distributed under a categorical distribution.