MUQ  0.4.3
muq::SamplingAlgorithms::MCKernel Class Reference

Monte Carlo transition kernel. More...

#include <MCKernel.h>

Inheritance diagram for muq::SamplingAlgorithms::MCKernel:

Detailed Description

Monte Carlo transition kernel.

Samples from the target distirbution directly and returns that state.

Definition at line 12 of file MCKernel.h.

Public Member Functions

 MCKernel (boost::property_tree::ptree const &pt, std::shared_ptr< SamplingProblem > problem)
 
virtual ~MCKernel ()=default
 
virtual std::vector< std::shared_ptr< SamplingState > > Step (std::shared_ptr< SamplingState > prevState) override
 
- Public Member Functions inherited from muq::SamplingAlgorithms::TransitionKernel
 TransitionKernel (boost::property_tree::ptree const &pt, std::shared_ptr< AbstractSamplingProblem > problem)
 
virtual ~TransitionKernel ()=default
 
virtual void SetCommunicator (std::shared_ptr< parcer::Communicator > newcomm)
 
virtual void PreStep (unsigned int const t, std::shared_ptr< SamplingState > state)
 Allow the kernel to preprocess the current step. More...
 
virtual void PostStep (unsigned int const t, std::vector< std::shared_ptr< SamplingState >> const &state)
 Allow the kernel to adapt given a new state. More...
 
virtual std::vector< std::shared_ptr< SamplingState > > Step (unsigned int const t, std::shared_ptr< SamplingState > prevState)=0
 
virtual void PrintStatus () const
 
virtual void PrintStatus (std::string prefix) const
 
virtual void SetBlockInd (int newBlockInd)
 
virtual int GetBlockInd () const
 
virtual std::shared_ptr< AbstractSamplingProblem > const & Problem () const
 

Additional Inherited Members

- Public Types inherited from muq::SamplingAlgorithms::TransitionKernel
typedef boost::function< std::shared_ptr< TransitionKernel >boost::property_tree::ptree, std::shared_ptr< AbstractSamplingProblem >)> TransitionKernelConstructor
 
typedef std::map< std::string, TransitionKernelConstructorTransitionKernelMap
 
- Static Public Member Functions inherited from muq::SamplingAlgorithms::TransitionKernel
static std::shared_ptr< TransitionKernelConstruct (boost::property_tree::ptree const &pt, std::shared_ptr< AbstractSamplingProblem > problem)
 Static constructor for the transition kernel. More...
 
static std::shared_ptr< TransitionKernelMapGetTransitionKernelMap ()
 

Constructor & Destructor Documentation

◆ MCKernel()

muq::SamplingAlgorithms::MCKernel::MCKernel ( boost::property_tree::ptree const &  pt,
std::shared_ptr< SamplingProblem problem 
)

◆ ~MCKernel()

virtual muq::SamplingAlgorithms::MCKernel::~MCKernel ( )
virtualdefault

Member Function Documentation

◆ Step()

std::vector< std::shared_ptr< SamplingState > > MCKernel::Step ( std::shared_ptr< SamplingState prevState)
overridevirtual

Definition at line 11 of file MCKernel.cpp.

References muq::SamplingAlgorithms::TransitionKernel::problem.


The documentation for this class was generated from the following files: