MUQ  0.4.3
InvariantSampling.cpp File Reference

Go to the source code of this file.

Functions

std::shared_ptr< GaussianCreatePrior (Discretization const &mesh)
 
Eigen::VectorXd GetTrueLogConductivity (Discretization const &mesh)
 
Eigen::VectorXd GenerateData (Discretization const &mesh, unsigned int obsThin, double obsVar)
 
std::shared_ptr< ModPieceConstructPosterior (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< SampleCollectionSampleDILI (std::shared_ptr< ModPiece > const &posterior, Eigen::VectorXd const &mapPt, std::shared_ptr< Gaussian > const &priorDist, unsigned int numSamps)
 
std::shared_ptr< SampleCollectionSamplePCN (std::shared_ptr< ModPiece > const &posterior, Eigen::VectorXd const &startPt, unsigned int numSamps)
 
int main ()
 

Function Documentation

◆ ComputeMAP()

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().

◆ ConstructPosterior()

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().

◆ CreatePrior()

std::shared_ptr<Gaussian> CreatePrior ( Discretization const &  mesh)

Definition at line 140 of file InvariantSampling.cpp.

Referenced by main().

◆ GenerateData()

Eigen::VectorXd GenerateData ( Discretization const &  mesh,
unsigned int  obsThin,
double  obsVar 
)

Definition at line 172 of file InvariantSampling.cpp.

References GetTrueLogConductivity().

Referenced by main().

◆ GetTrueLogConductivity()

Eigen::VectorXd GetTrueLogConductivity ( Discretization const &  mesh)
Parameters
[in]meshEvaluate the true log conductivity on the cell locations of this mesh
Returns
The true log conductivity on the cell locations of this mesh

Definition at line 163 of file InvariantSampling.cpp.

Referenced by GenerateData().

◆ main()

int main ( )

◆ SampleDILI()

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().

◆ SampleInflatedLaplace()

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().

◆ SamplePCN()

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().