MUQ  0.4.3
MonteCarlo.cpp
Go to the documentation of this file.
2 
3 namespace pt = boost::property_tree;
4 using namespace muq::SamplingAlgorithms;
5 
7  SamplingAlgorithm(false) // the sampling algorithm produces uncorrelated samples
8 {}
9 
11 
12 std::shared_ptr<TransitionKernel> MonteCarlo::ConstructKernel(pt::ptree& pt, std::shared_ptr<SamplingProblem> problem) const {
13  // we have to use the Monte Carlo transition kernel
14  pt.put<std::string>("SamplingAlgorithm.TransitionKernel", "MCKernel");
15 
16  return TransitionKernel::Construct(pt, problem);
17 }
virtual std::shared_ptr< TransitionKernel > ConstructKernel(boost::property_tree::ptree &pt, std::shared_ptr< AbstractSamplingProblem > problem) const override
Create the transition kernel.
Definition: MonteCarlo.cpp:12
static std::shared_ptr< TransitionKernel > Construct(boost::property_tree::ptree const &pt, std::shared_ptr< AbstractSamplingProblem > problem)
Static constructor for the transition kernel.