|
MCKL
Monte Carlo Kernel Library
|
MCMC sampler. More...
#include <mckl/algorithm/mcmc.hpp>
Inherits mckl::Sampler< MCMCSampler< T, U > >.
Public Types | |
| using | estimator_type = typename Sampler< MCMCSampler< T, U > >::estimator_type |
| using | eval_type = typename Sampler< MCMCSampler< T, U > >::eval_type |
| using | state_type = T |
Public Types inherited from mckl::Sampler< MCMCSampler< T, U > > | |
| using | estimator_type = typename SamplerTrait< MCMCSampler< T, U > >::estimator_type |
| using | eval_type = typename SamplerTrait< MCMCSampler< T, U > >::eval_type |
Public Member Functions | |
| template<typename... Args> | |
| MCMCSampler (Args &&... args) | |
| void | clear () |
| Clear all history. More... | |
| template<typename Estimator > | |
| std::size_t | estimator (Estimator &&estimator) |
| estimator_type & | estimator (std::size_t k) |
| const estimator_type & | estimator (std::size_t k) const |
| void | iterate (std::size_t n=1) |
| Iterate the sampler. More... | |
| template<typename Eval > | |
| std::size_t | mutation (Eval &&eval, std::enable_if_t<!std::is_integral< Eval >::value > *=nullptr) |
| Add a new evaluation object for the mutation step. More... | |
| eval_type & | mutation (std::size_t k) |
| const eval_type & | mutation (std::size_t k) const |
| std::size_t | num_iter () const |
| The number of iterations already performed. More... | |
| template<typename OutputIter > | |
| OutputIter | read_accept_history (std::size_t i, OutputIter first) const |
| Read accept count history given mutation step index. More... | |
| template<typename OutputIter > | |
| OutputIter | read_accept_history (MatrixLayout layout, OutputIter first) const |
| Read all accept count history into a matrix. More... | |
| void | reserve (std::size_t n) |
| Reserve space for a specified number of iterations. More... | |
| void | reset () |
| Reset the sampler by clear all history, evaluation objects, and estimators. More... | |
| state_type & | state () |
| Read and write access to the state object. More... | |
| const state_type & | state () const |
| Read only access to the state object. More... | |
Public Member Functions inherited from mckl::Sampler< MCMCSampler< T, U > > | |
| void | clear () |
| Clear all estimator histories. More... | |
| std::basic_ostream< CharT, Traits > & | print (std::basic_ostream< CharT, Traits > &os, char sepchar=' ') const |
| Print the summary matrix in textual form. More... | |
| void | reserve (std::size_t n) |
| Reserve space for additional iterations. More... | |
| void | reset () |
| Remove all evaluation and estimation methods. More... | |
| Matrix< T, Layout > | summary () const |
| Return a combined matrix of all estimates. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from mckl::Sampler< MCMCSampler< T, U > > | |
| Sampler (std::size_t steps) | |
| Vector< estimator_type > & | estimator (std::size_t step) |
| const Vector< estimator_type > & | estimator (std::size_t step) const |
| std::size_t | estimator (std::size_t step, Estimator &&estimator, std::enable_if_t<!std::is_integral< Estimator >::value > *=nullptr) |
| estimator_type & | estimator (std::size_t step, std::size_t k) |
| const estimator_type & | estimator (std::size_t step, std::size_t k) const |
| Vector< eval_type > & | eval (std::size_t step) |
| const Vector< eval_type > & | eval (std::size_t step) const |
| std::size_t | eval (std::size_t step, Eval &&eval, std::enable_if_t<!std::is_integral< Eval >::value > *=nullptr) |
| eval_type & | eval (std::size_t step, std::size_t k) |
| const eval_type & | eval (std::size_t step, std::size_t k) const |
MCMC sampler.
| using mckl::MCMCSampler< T, U >::estimator_type = typename Sampler<MCMCSampler<T, U> >::estimator_type |
| using mckl::MCMCSampler< T, U >::eval_type = typename Sampler<MCMCSampler<T, U> >::eval_type |
| using mckl::MCMCSampler< T, U >::state_type = T |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
1.8.13