Go to the source code of this file.
Functions | |
std::shared_ptr< Gaussian > | CreatePrior (Discretization const &mesh) |
Eigen::VectorXd | GetTrueLogConductivity (Discretization const &mesh) |
Eigen::VectorXd | GenerateData (Discretization const &mesh, unsigned int obsThin, double obsVar) |
std::shared_ptr< ModPiece > | ConstructPosterior (Discretization const &mesh, std::shared_ptr< Gaussian > const &priorDist, Eigen::VectorXd const &data, unsigned int obsThin, double obsVar) |
Eigen::VectorXd | ComputeMAP (std::shared_ptr< ModPiece > const &logPosterior, Eigen::VectorXd const &startPt) |
Eigen::VectorXd | SampleInflatedLaplace (std::shared_ptr< DILIKernel > const &diliKernel, std::shared_ptr< Gaussian > const &priorDist, Eigen::VectorXd const &mapPt) |
std::shared_ptr< SampleCollection > | SampleDILI (std::shared_ptr< ModPiece > const &posterior, Eigen::VectorXd const &mapPt, std::shared_ptr< Gaussian > const &priorDist, unsigned int numSamps) |
std::shared_ptr< SampleCollection > | SamplePCN (std::shared_ptr< ModPiece > const &posterior, Eigen::VectorXd const &startPt, unsigned int numSamps) |
int | main () |
Eigen::VectorXd ComputeMAP | ( | std::shared_ptr< ModPiece > const & | logPosterior, |
Eigen::VectorXd const & | startPt | ||
) |
Definition at line 269 of file InvariantSampling.cpp.
References nlohmann::detail::dtoa_impl::e.
Referenced by main().
std::shared_ptr<ModPiece> ConstructPosterior | ( | Discretization const & | mesh, |
std::shared_ptr< Gaussian > const & | priorDist, | ||
Eigen::VectorXd const & | data, | ||
unsigned int | obsThin, | ||
double | obsVar | ||
) |
Definition at line 214 of file InvariantSampling.cpp.
Referenced by main().
std::shared_ptr<Gaussian> CreatePrior | ( | Discretization const & | mesh | ) |
Definition at line 140 of file InvariantSampling.cpp.
Referenced by main().
Eigen::VectorXd GenerateData | ( | Discretization const & | mesh, |
unsigned int | obsThin, | ||
double | obsVar | ||
) |
Definition at line 172 of file InvariantSampling.cpp.
References GetTrueLogConductivity().
Referenced by main().
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().
int main | ( | ) |
Definition at line 422 of file InvariantSampling.cpp.
References ComputeMAP(), ConstructPosterior(), CreatePrior(), GenerateData(), SampleDILI(), and SamplePCN().
std::shared_ptr<SampleCollection> SampleDILI | ( | std::shared_ptr< ModPiece > const & | posterior, |
Eigen::VectorXd const & | mapPt, | ||
std::shared_ptr< Gaussian > const & | priorDist, | ||
unsigned int | numSamps | ||
) |
Definition at line 348 of file InvariantSampling.cpp.
References SampleInflatedLaplace().
Referenced by main().
Eigen::VectorXd SampleInflatedLaplace | ( | std::shared_ptr< DILIKernel > const & | diliKernel, |
std::shared_ptr< Gaussian > const & | priorDist, | ||
Eigen::VectorXd const & | mapPt | ||
) |
Definition at line 327 of file InvariantSampling.cpp.
Referenced by SampleDILI().
std::shared_ptr<SampleCollection> SamplePCN | ( | std::shared_ptr< ModPiece > const & | posterior, |
Eigen::VectorXd const & | startPt, | ||
unsigned int | numSamps | ||
) |
Definition at line 395 of file InvariantSampling.cpp.
Referenced by main().