Greedy Multilevel MCMC method. More...
#include <GreedyMLMCMC.h>
Greedy Multilevel MCMC method.
A Multilevel MCMC method choosing the number of samples adaptively at runtime, estimating the most profitable level from statistical information on samples.
Definition at line 24 of file GreedyMLMCMC.h.
Public Member Functions | |
GreedyMLMCMC (boost::property_tree::ptree pt, Eigen::VectorXd const &startPt, std::vector< std::shared_ptr< muq::Modeling::ModPiece >> const &models, std::shared_ptr< MultiIndexSet > const &multis=nullptr) | |
GreedyMLMCMC (boost::property_tree::ptree pt, Eigen::VectorXd const &startPt, std::vector< std::shared_ptr< AbstractSamplingProblem >> const &problems, std::shared_ptr< MultiIndexSet > const &multis=nullptr) | |
GreedyMLMCMC (boost::property_tree::ptree pt, std::shared_ptr< MIComponentFactory > componentFactory) | |
virtual std::shared_ptr< MultiIndexEstimator > | GetSamples () const |
virtual std::shared_ptr< MultiIndexEstimator > | GetQOIs () const |
void | Draw (bool drawSamples=true) |
std::shared_ptr< MIMCMCBox > | GetBox (int index) |
std::vector< std::shared_ptr< MIMCMCBox > > | GetBoxes () |
void | WriteToFile (std::string filename) |
virtual std::shared_ptr< MultiIndexEstimator > | Run () |
muq::SamplingAlgorithms::GreedyMLMCMC::GreedyMLMCMC | ( | boost::property_tree::ptree | pt, |
Eigen::VectorXd const & | startPt, | ||
std::vector< std::shared_ptr< muq::Modeling::ModPiece >> const & | models, | ||
std::shared_ptr< MultiIndexSet > const & | multis = nullptr |
||
) |
muq::SamplingAlgorithms::GreedyMLMCMC::GreedyMLMCMC | ( | boost::property_tree::ptree | pt, |
Eigen::VectorXd const & | startPt, | ||
std::vector< std::shared_ptr< AbstractSamplingProblem >> const & | problems, | ||
std::shared_ptr< MultiIndexSet > const & | multis = nullptr |
||
) |
GreedyMLMCMC::GreedyMLMCMC | ( | boost::property_tree::ptree | pt, |
std::shared_ptr< MIComponentFactory > | componentFactory | ||
) |
Definition at line 24 of file GreedyMLMCMC.cpp.
References boxes, componentFactory, levels, and verbosity.
|
staticprivate |
Definition at line 44 of file GreedyMLMCMC.cpp.
void GreedyMLMCMC::Draw | ( | bool | drawSamples = true | ) |
std::shared_ptr< MIMCMCBox > GreedyMLMCMC::GetBox | ( | int | index | ) |
Definition at line 140 of file GreedyMLMCMC.cpp.
References boxes.
std::vector< std::shared_ptr< MIMCMCBox > > GreedyMLMCMC::GetBoxes | ( | ) |
Definition at line 144 of file GreedyMLMCMC.cpp.
References boxes.
|
virtual |
|
virtual |
|
staticprivate |
Definition at line 167 of file GreedyMLMCMC.cpp.
|
virtual |
Definition at line 62 of file GreedyMLMCMC.cpp.
References beta, boxes, componentFactory, e, GetSamples(), levels, numInitialSamples, nlohmann::to_string(), useQOIs, and verbosity.
Referenced by main().
void GreedyMLMCMC::WriteToFile | ( | std::string | filename | ) |
|
private |
Definition at line 61 of file GreedyMLMCMC.h.
Referenced by Run().
|
private |
Definition at line 64 of file GreedyMLMCMC.h.
Referenced by Draw(), GetBox(), GetBoxes(), GetQOIs(), GetSamples(), GreedyMLMCMC(), Run(), and WriteToFile().
|
private |
Definition at line 58 of file GreedyMLMCMC.h.
Referenced by GreedyMLMCMC(), and Run().
|
private |
Definition at line 60 of file GreedyMLMCMC.h.
Referenced by Run().
|
private |
Definition at line 62 of file GreedyMLMCMC.h.
Referenced by GreedyMLMCMC(), and Run().
|
private |
Definition at line 59 of file GreedyMLMCMC.h.
Referenced by Run().
|
private |
Definition at line 65 of file GreedyMLMCMC.h.
Referenced by Run().
|
private |
Definition at line 63 of file GreedyMLMCMC.h.
Referenced by GreedyMLMCMC(), and Run().