queso-0.57.1
|
A templated class for validation cycle of the examples validationCycle and validationCycle2. More...
#include <ValidationCycle.h>
Public Member Functions | |
Constructor/Destructor methods | |
ValidationCycle (const BaseEnvironment &env, const char *prefix, const VectorSpace< P_V, P_M > ¶mSpace, const VectorSpace< P_V, P_M > &qoiSpace) | |
Constructor. More... | |
~ValidationCycle () | |
Destructor. More... | |
Misc methods | |
const BaseEnvironment & | env () const |
Access to the environment variable (m_env). More... | |
Statistical methods | |
void | instantiateCalIP (SipOptionsValues *optionsValues, const BaseVectorRV< P_V, P_M > &priorRv, const BaseScalarFunction< P_V, P_M > &likelihoodFunctionObj) |
Instantiate an inverse problem for the calibration stage. More... | |
void | instantiateCalFP (SfpOptionsValues *optionsValues, void(*qoiRoutinePtr)(const P_V &domainVector, const P_V *domainDirection, const void *functionDataPtr, Q_V &imageVector, DistArray< P_V * > *gradVectors, DistArray< P_M * > *hessianMatrices, DistArray< P_V * > *hessianEffects), const void *qoiRoutineDataPtr) |
Instantiate a forward problem for the calibration stage. More... | |
const StatisticalInverseProblem< P_V, P_M > & | calIP () const |
Inverse problem of the calibration stage (const) . More... | |
StatisticalInverseProblem< P_V, P_M > & | calIP () |
Inverse problem of the calibration stage (non-const) . More... | |
const StatisticalForwardProblem< P_V, P_M, Q_V, Q_M > & | calFP () const |
Forward problem of the calibration stage (const) . More... | |
StatisticalForwardProblem< P_V, P_M, Q_V, Q_M > & | calFP () |
Forward problem of the calibration stage (non-const) . More... | |
void | instantiateValIP (SipOptionsValues *optionsValues, const BaseScalarFunction< P_V, P_M > &likelihoodFunctionObj) |
Instantiate an inverse problem for the validation stage. More... | |
void | instantiateValFP (SfpOptionsValues *optionsValues, void(*qoiRoutinePtr)(const P_V &domainVector, const P_V *domainDirection, const void *functionDataPtr, Q_V &imageVector, DistArray< P_V * > *gradVectors, DistArray< P_M * > *hessianMatrices, DistArray< P_V * > *hessianEffects), const void *qoiRoutineDataPtr) |
Instantiate a forward problem for the validation stage. More... | |
const StatisticalInverseProblem< P_V, P_M > & | valIP () const |
Inverse problem of the validation stage (const) . More... | |
StatisticalInverseProblem< P_V, P_M > & | valIP () |
Inverse problem of the validation stage (non-const) . More... | |
const StatisticalForwardProblem< P_V, P_M, Q_V, Q_M > & | valFP () const |
Forward problem of the validation stage (const) . More... | |
StatisticalForwardProblem< P_V, P_M, Q_V, Q_M > & | valFP () |
Forward problem of the validation stage (non-const) . More... | |
Private Attributes | |
const BaseEnvironment & | m_env |
std::string | m_prefix |
const VectorSpace< P_V, P_M > & | m_paramSpace |
const VectorSpace< Q_V, Q_M > & | m_qoiSpace |
const BaseVectorRV< P_V, P_M > * | m_calPriorRv |
const BaseScalarFunction< P_V, P_M > * | m_calLikelihoodFunctionObj |
GenericVectorRV< P_V, P_M > * | m_calPostRv |
StatisticalInverseProblem< P_V, P_M > * | m_calIP |
GenericVectorFunction< P_V, P_M, Q_V, Q_M > * | m_calQoiFunctionObj |
GenericVectorRV< Q_V, Q_M > * | m_calQoiRv |
StatisticalForwardProblem< P_V, P_M, Q_V, Q_M > * | m_calFP |
const BaseScalarFunction< P_V, P_M > * | m_valLikelihoodFunctionObj |
GenericVectorRV< P_V, P_M > * | m_valPostRv |
StatisticalInverseProblem< P_V, P_M > * | m_valIP |
GenericVectorFunction< P_V, P_M, Q_V, Q_M > * | m_valQoiFunctionObj |
GenericVectorRV< Q_V, Q_M > * | m_valQoiRv |
StatisticalForwardProblem< P_V, P_M, Q_V, Q_M > * | m_valFP |
A templated class for validation cycle of the examples validationCycle and validationCycle2.
It has two stages: calibration and validation. First, in the calibration stage, the inverse problem solution (posterior RV) is the input parameter vector RV for the forward problem. Then, in the Validation stage, the posterior vector RV from calibration stage (solution of the forward problem of the calibration stage) is the prior vector RV for an inverse problem. Then, the solution of this inverse problem is once more the input parameter vector RV for the (validation) forward problem.
The examples validationCycle and validationCycle2 use the present class to solve the same TGA problem, and they only differ in implementation styles.
Definition at line 54 of file ValidationCycle.h.
QUESO::ValidationCycle< P_V, P_M, Q_V, Q_M >::ValidationCycle | ( | const BaseEnvironment & | env, |
const char * | prefix, | ||
const VectorSpace< P_V, P_M > & | paramSpace, | ||
const VectorSpace< P_V, P_M > & | qoiSpace | ||
) |
Constructor.
Definition at line 33 of file ValidationCycle.C.
References QUESO::ValidationCycle< P_V, P_M, Q_V, Q_M >::m_env, QUESO::ValidationCycle< P_V, P_M, Q_V, Q_M >::m_prefix, and QUESO::BaseEnvironment::subDisplayFile().
QUESO::ValidationCycle< P_V, P_M, Q_V, Q_M >::~ValidationCycle | ( | ) |
Destructor.
Definition at line 72 of file ValidationCycle.C.
const StatisticalForwardProblem< P_V, P_M, Q_V, Q_M > & QUESO::ValidationCycle< P_V, P_M, Q_V, Q_M >::calFP | ( | ) | const |
Forward problem of the calibration stage (const) .
It is an instance of class StatisticalForwardProblem<>.
Definition at line 187 of file ValidationCycle.C.
StatisticalForwardProblem< P_V, P_M, Q_V, Q_M > & QUESO::ValidationCycle< P_V, P_M, Q_V, Q_M >::calFP | ( | ) |
Forward problem of the calibration stage (non-const) .
It is an instance of class StatisticalForwardProblem<>.
Definition at line 194 of file ValidationCycle.C.
const StatisticalInverseProblem< P_V, P_M > & QUESO::ValidationCycle< P_V, P_M, Q_V, Q_M >::calIP | ( | ) | const |
Inverse problem of the calibration stage (const) .
It is an instance of class StatisticalInverseProblem<>.
Definition at line 137 of file ValidationCycle.C.
StatisticalInverseProblem< P_V, P_M > & QUESO::ValidationCycle< P_V, P_M, Q_V, Q_M >::calIP | ( | ) |
Inverse problem of the calibration stage (non-const) .
It is an instance of class StatisticalInverseProblem<>.
Definition at line 144 of file ValidationCycle.C.
const BaseEnvironment & QUESO::ValidationCycle< P_V, P_M, Q_V, Q_M >::env | ( | ) | const |
void QUESO::ValidationCycle< P_V, P_M, Q_V, Q_M >::instantiateCalFP | ( | SfpOptionsValues * | optionsValues, |
void(*)(const P_V &domainVector, const P_V *domainDirection, const void *functionDataPtr, Q_V &imageVector, DistArray< P_V * > *gradVectors, DistArray< P_M * > *hessianMatrices, DistArray< P_V * > *hessianEffects) | qoiRoutinePtr, | ||
const void * | qoiRoutineDataPtr | ||
) |
Instantiate a forward problem for the calibration stage.
Definition at line 151 of file ValidationCycle.C.
void QUESO::ValidationCycle< P_V, P_M, Q_V, Q_M >::instantiateCalIP | ( | SipOptionsValues * | optionsValues, |
const BaseVectorRV< P_V, P_M > & | priorRv, | ||
const BaseScalarFunction< P_V, P_M > & | likelihoodFunctionObj | ||
) |
Instantiate an inverse problem for the calibration stage.
Definition at line 107 of file ValidationCycle.C.
void QUESO::ValidationCycle< P_V, P_M, Q_V, Q_M >::instantiateValFP | ( | SfpOptionsValues * | optionsValues, |
void(*)(const P_V &domainVector, const P_V *domainDirection, const void *functionDataPtr, Q_V &imageVector, DistArray< P_V * > *gradVectors, DistArray< P_M * > *hessianMatrices, DistArray< P_V * > *hessianEffects) | qoiRoutinePtr, | ||
const void * | qoiRoutineDataPtr | ||
) |
Instantiate a forward problem for the validation stage.
Definition at line 243 of file ValidationCycle.C.
void QUESO::ValidationCycle< P_V, P_M, Q_V, Q_M >::instantiateValIP | ( | SipOptionsValues * | optionsValues, |
const BaseScalarFunction< P_V, P_M > & | likelihoodFunctionObj | ||
) |
Instantiate an inverse problem for the validation stage.
Definition at line 201 of file ValidationCycle.C.
const StatisticalForwardProblem< P_V, P_M, Q_V, Q_M > & QUESO::ValidationCycle< P_V, P_M, Q_V, Q_M >::valFP | ( | ) | const |
Forward problem of the validation stage (const) .
It is an instance of class StatisticalForwardProblem<>.
Definition at line 279 of file ValidationCycle.C.
StatisticalForwardProblem< P_V, P_M, Q_V, Q_M > & QUESO::ValidationCycle< P_V, P_M, Q_V, Q_M >::valFP | ( | ) |
Forward problem of the validation stage (non-const) .
It is an instance of class StatisticalForwardProblem<>.
Definition at line 286 of file ValidationCycle.C.
const StatisticalInverseProblem< P_V, P_M > & QUESO::ValidationCycle< P_V, P_M, Q_V, Q_M >::valIP | ( | ) | const |
Inverse problem of the validation stage (const) .
It is an instance of class StatisticalInverseProblem<>.
Definition at line 229 of file ValidationCycle.C.
StatisticalInverseProblem< P_V, P_M > & QUESO::ValidationCycle< P_V, P_M, Q_V, Q_M >::valIP | ( | ) |
Inverse problem of the validation stage (non-const) .
It is an instance of class StatisticalInverseProblem<>.
Definition at line 236 of file ValidationCycle.C.
|
private |
Definition at line 159 of file ValidationCycle.h.
|
private |
Definition at line 155 of file ValidationCycle.h.
|
private |
Definition at line 153 of file ValidationCycle.h.
|
private |
Definition at line 154 of file ValidationCycle.h.
|
private |
Definition at line 152 of file ValidationCycle.h.
|
private |
Definition at line 157 of file ValidationCycle.h.
|
private |
Definition at line 158 of file ValidationCycle.h.
|
private |
Definition at line 147 of file ValidationCycle.h.
Referenced by QUESO::ValidationCycle< P_V, P_M, Q_V, Q_M >::ValidationCycle().
|
private |
Definition at line 149 of file ValidationCycle.h.
|
private |
Definition at line 148 of file ValidationCycle.h.
Referenced by QUESO::ValidationCycle< P_V, P_M, Q_V, Q_M >::ValidationCycle().
|
private |
Definition at line 150 of file ValidationCycle.h.
|
private |
Definition at line 167 of file ValidationCycle.h.
|
private |
Definition at line 163 of file ValidationCycle.h.
|
private |
Definition at line 161 of file ValidationCycle.h.
|
private |
Definition at line 162 of file ValidationCycle.h.
|
private |
Definition at line 165 of file ValidationCycle.h.
|
private |
Definition at line 166 of file ValidationCycle.h.