Implementation of the classic Random Walk Metropolis proposal. More...
#include <MHProposal.h>
Implementation of the classic Random Walk Metropolis proposal.
Configuration Parameters:
Parameter Key | Type | Default Value | Description |
---|---|---|---|
"ProposalVariance" | Double | - | The variance of an isotropic random walk proposal. |
Definition at line 20 of file MHProposal.h.
Public Member Functions | |
MHProposal (boost::property_tree::ptree const &pt, std::shared_ptr< AbstractSamplingProblem > prob) | |
MHProposal (boost::property_tree::ptree const &pt, std::shared_ptr< AbstractSamplingProblem > prob, std::shared_ptr< muq::Modeling::GaussianBase > proposalIn) | |
virtual | ~MHProposal ()=default |
Public Member Functions inherited from muq::SamplingAlgorithms::MCMCProposal | |
MCMCProposal (boost::property_tree::ptree const &pt, std::shared_ptr< AbstractSamplingProblem > const &probIn) | |
virtual | ~MCMCProposal ()=default |
virtual void | Adapt (unsigned int const t, std::vector< std::shared_ptr< SamplingState >> const &state) |
Adapt the proposal after each step. More... | |
void | SetCommunicator (std::shared_ptr< parcer::Communicator > newcomm) |
virtual void | SetBlockInd (int newBlockInd) |
virtual int | GetBlockInd () const |
Additional Inherited Members | |
Public Types inherited from muq::SamplingAlgorithms::MCMCProposal | |
typedef std::function< std::shared_ptr< MCMCProposal >boost::property_tree::ptree, std::shared_ptr< AbstractSamplingProblem >)> | MCMCProposalConstructor |
typedef std::map< std::string, MCMCProposalConstructor > | MCMCProposalMap |
Static Public Member Functions inherited from muq::SamplingAlgorithms::MCMCProposal | |
static std::shared_ptr< MCMCProposal > | Construct (boost::property_tree::ptree const &pt, std::shared_ptr< AbstractSamplingProblem > const &probIn) |
Static constructor for the transition kernel. More... | |
static std::shared_ptr< MCMCProposalMap > | GetMCMCProposalMap () |
muq::SamplingAlgorithms::MHProposal::MHProposal | ( | boost::property_tree::ptree const & | pt, |
std::shared_ptr< AbstractSamplingProblem > | prob | ||
) |
muq::SamplingAlgorithms::MHProposal::MHProposal | ( | boost::property_tree::ptree const & | pt, |
std::shared_ptr< AbstractSamplingProblem > | prob, | ||
std::shared_ptr< muq::Modeling::GaussianBase > | proposalIn | ||
) |
|
virtualdefault |
|
overrideprotectedvirtual |
Implements muq::SamplingAlgorithms::MCMCProposal.
Definition at line 48 of file MHProposal.cpp.
References muq::SamplingAlgorithms::MCMCProposal::blockInd, and proposal.
|
overrideprotectedvirtual |
Implements muq::SamplingAlgorithms::MCMCProposal.
Definition at line 33 of file MHProposal.cpp.
References muq::SamplingAlgorithms::MCMCProposal::blockInd, and proposal.
|
protected |
The proposal distribution.
Definition at line 35 of file MHProposal.h.
Referenced by LogDensity(), and Sample().