Go to the source code of this file.
Classes | |
struct | Data |
Functions | |
std::shared_ptr< muq::Modeling::LinearOperator > | InterpolateOntoObs (Discretization const &mesh, Eigen::VectorXd const &obsLoc) |
Interpolate the model solution onto the observation points. More... | |
Eigen::VectorXd | GetRecharge (Discretization const &mesh) |
Eigen::VectorXd | GetTrueLogConductivity (Discretization const &mesh) |
Data | GenerateData (std::size_t const numCells, std::size_t const numObs, double const obsVar) |
std::vector< std::shared_ptr< muq::Modeling::ModPiece > > | ConstructDensities (std::size_t const numLevels, std::size_t const baseRefinement) |
std::shared_ptr< muq::Modeling::ModPiece > | ConstructDensity (std::size_t const numCells, Data const &data, double const likelihoodVar) |
std::vector<std::shared_ptr<muq::Modeling::ModPiece> > ConstructDensities | ( | std::size_t const | numLevels, |
std::size_t const | baseRefinement | ||
) |
[in] | numLevels | The number of multi level MCMC chains |
[in] | baseRefinement | The number of cells in the coarsest model |
Definition at line 138 of file FlowModelComponents.cpp.
References ConstructDensity(), GenerateData(), Data::obs, Data::obsLoc, Data::soln, and Data::x.
std::shared_ptr<muq::Modeling::ModPiece> ConstructDensity | ( | std::size_t const | numCells, |
Data const & | data, | ||
double const | likelihoodVar | ||
) |
[in] | numCells | The number of cells in the model associated with this density |
[in] | data | The observations |
[in] | likelihoodVar | The variance of the likelihood |
Definition at line 73 of file FlowModelComponents.cpp.
References muq::Approximation::GaussQuadrature::Compute(), muq::Approximation::KarhunenLoeveExpansion::GetModes(), GetRecharge(), InterpolateOntoObs(), Data::obs, Data::obsLoc, muq::Approximation::Quadrature::Points(), and muq::Approximation::Quadrature::Weights().
Referenced by ConstructDensities().
Data GenerateData | ( | std::size_t const | numCells, |
std::size_t const | numObs, | ||
double const | obsVar | ||
) |
[in] | numCells | The number of cells on the very fine mesh used to generate the data |
[in] | numObs | The number of observations |
[in] | obsVar | The variance of the observation noise |
Definition at line 58 of file FlowModelComponents.cpp.
References GetRecharge(), GetTrueLogConductivity(), and InterpolateOntoObs().
Referenced by ConstructDensities().
Eigen::VectorXd GetRecharge | ( | Discretization const & | mesh | ) |
[in] | mesh | Evaluate the recharge (source terms) on the cell locations of this mesh |
Definition at line 37 of file FlowModelComponents.cpp.
Referenced by ConstructDensity(), and GenerateData().
Eigen::VectorXd GetTrueLogConductivity | ( | Discretization const & | mesh | ) |
[in] | mesh | Evaluate the true log conductivity on the cell locations of this mesh |
Definition at line 163 of file InvariantSampling.cpp.
Referenced by GenerateData().
std::shared_ptr<muq::Modeling::LinearOperator> InterpolateOntoObs | ( | Discretization const & | mesh, |
Eigen::VectorXd const & | obsLoc | ||
) |
Interpolate the model solution onto the observation points.
[in] | mesh | The mesh used to solve the model |
[in] | obsLoc | The locations where we want are making observations |
Definition at line 41 of file FlowModelComponents.cpp.
Referenced by ConstructDensity(), and GenerateData().