MUQ  0.4.3
DummyKernel.h
Go to the documentation of this file.
1 #ifndef DUMMYKERNEL_H_
2 #define DUMMYKERNEL_H_
3 
5 
7 
9 
10 namespace muq {
11  namespace SamplingAlgorithms {
12 
17  class DummyKernel : public TransitionKernel {
18  public:
19 
20  DummyKernel(boost::property_tree::ptree const& pt,
21  std::shared_ptr<AbstractSamplingProblem> problem,
22  std::shared_ptr<MCMCProposal> proposal);
23 
24  ~DummyKernel();
25 
26  virtual std::shared_ptr<MCMCProposal> Proposal(){return proposal;};
27 
28  virtual void PostStep(unsigned int const t, std::vector<std::shared_ptr<SamplingState>> const& state) override;
29 
30  virtual void PrintStatus(std::string prefix) const override;
31 
32  virtual std::vector<std::shared_ptr<SamplingState>> Step(unsigned int const t, std::shared_ptr<SamplingState> prevState) override;
33 
34  protected:
35  std::shared_ptr<MCMCProposal> proposal;
36 
37  unsigned int numCalls = 0;
38  };
39  } // namespace SamplingAlgorithms
40 } // namespace muq
41 
42 #endif
MCMC kernel that always accepts proposals.
Definition: DummyKernel.h:17
std::shared_ptr< MCMCProposal > proposal
Definition: DummyKernel.h:35
virtual void PostStep(unsigned int const t, std::vector< std::shared_ptr< SamplingState >> const &state) override
Allow the kernel to adapt given a new state.
Definition: DummyKernel.cpp:23
virtual std::vector< std::shared_ptr< SamplingState > > Step(unsigned int const t, std::shared_ptr< SamplingState > prevState) override
Definition: DummyKernel.cpp:27
virtual std::shared_ptr< MCMCProposal > Proposal()
Definition: DummyKernel.h:26
DummyKernel(boost::property_tree::ptree const &pt, std::shared_ptr< AbstractSamplingProblem > problem, std::shared_ptr< MCMCProposal > proposal)
Definition: DummyKernel.cpp:13
Defines the transition kernel used by an MCMC algorithm.
std::shared_ptr< AbstractSamplingProblem > problem
The sampling problem that evaluates/samples the target distribution.