4 #include <boost/property_tree/ptree.hpp>
16 namespace SamplingAlgorithms {
27 Eigen::VectorXd
const& startPt,
28 std::vector<std::shared_ptr<muq::Modeling::ModPiece>>
const& models,
29 std::shared_ptr<MultiIndexSet>
const& multis =
nullptr);
32 Eigen::VectorXd
const& startPt,
33 std::vector<std::shared_ptr<AbstractSamplingProblem>>
const& problems,
34 std::shared_ptr<MultiIndexSet>
const& multis =
nullptr);
39 virtual std::shared_ptr<MultiIndexEstimator>
GetSamples()
const;
40 virtual std::shared_ptr<MultiIndexEstimator>
GetQOIs()
const;
42 void Draw(
bool drawSamples =
true);
44 std::shared_ptr<MIMCMCBox>
GetBox(
int index);
45 std::vector<std::shared_ptr<MIMCMCBox>>
GetBoxes();
49 virtual std::shared_ptr<MultiIndexEstimator>
Run();
54 static std::vector<std::shared_ptr<AbstractSamplingProblem>>
CreateProblems(std::vector<std::shared_ptr<muq::Modeling::ModPiece>>
const& models);
55 static std::shared_ptr<MultiIndexSet>
ProcessMultis(std::shared_ptr<MultiIndexSet>
const& multis,
unsigned int numLevels);
64 std::vector<std::shared_ptr<MIMCMCBox>>
boxes;
Greedy Multilevel MCMC method.
static std::shared_ptr< MultiIndexSet > ProcessMultis(std::shared_ptr< MultiIndexSet > const &multis, unsigned int numLevels)
virtual std::shared_ptr< MultiIndexEstimator > GetQOIs() const
void WriteToFile(std::string filename)
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)
std::shared_ptr< MIMCMCBox > GetBox(int index)
std::shared_ptr< MIComponentFactory > componentFactory
virtual std::shared_ptr< MultiIndexEstimator > Run()
std::vector< std::shared_ptr< MIMCMCBox > > GetBoxes()
const int numInitialSamples
void Draw(bool drawSamples=true)
virtual std::shared_ptr< MultiIndexEstimator > GetSamples() const
static std::vector< std::shared_ptr< AbstractSamplingProblem > > CreateProblems(std::vector< std::shared_ptr< muq::Modeling::ModPiece >> const &models)
std::vector< std::shared_ptr< MIMCMCBox > > boxes
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)