12 std::shared_ptr<AbstractSamplingProblem> prob,
13 std::shared_ptr<Distribution>
dist
15 : MCMCProposal(pt, prob),
19 std::shared_ptr<SamplingState>
Sample(std::shared_ptr<SamplingState>
const& currentState)
override {
20 return std::make_shared<SamplingState>(
dist->Sample());
23 double LogDensity(std::shared_ptr<SamplingState>
const& currState,
24 std::shared_ptr<SamplingState>
const& propState)
override {
30 std::shared_ptr<Distribution>
dist;
Proposal density intended for Monte Carlo methods.
std::shared_ptr< SamplingState > Sample(std::shared_ptr< SamplingState > const ¤tState) override
std::shared_ptr< Distribution > dist
MCSampleProposal(boost::property_tree::ptree const &pt, std::shared_ptr< AbstractSamplingProblem > prob, std::shared_ptr< Distribution > dist)
double LogDensity(std::shared_ptr< SamplingState > const &currState, std::shared_ptr< SamplingState > const &propState) override