queso-0.57.1
|
#include <GPMSA.h>
Public Member Functions | |
GPMSAFactory (const BaseEnvironment &env, GPMSAOptions *opts, const BaseVectorRV< V, M > ¶meterPrior, const VectorSpace< V, M > &scenarioSpace, const VectorSpace< V, M > ¶meterSpace, const VectorSpace< V, M > &simulationOutputSpace, const VectorSpace< V, M > &experimentOutputSpace, unsigned int numSimulations, unsigned int numExperiments) | |
Constructor. More... | |
~GPMSAFactory () | |
Destructor. More... | |
void | addSimulation (typename SharedPtr< V >::Type simulationScenario, typename SharedPtr< V >::Type simulationParameter, typename SharedPtr< V >::Type simulationOutput) |
Add a simulation to this . More... | |
void | addSimulations (const std::vector< typename SharedPtr< V >::Type > &simulationScenarios, const std::vector< typename SharedPtr< V >::Type > &simulationParameters, const std::vector< typename SharedPtr< V >::Type > &simulationOutputs) |
Adds multiple simulations to this . More... | |
void | addExperiments (const std::vector< typename SharedPtr< V >::Type > &experimentScenarios, const std::vector< typename SharedPtr< V >::Type > &experimentOutputs, const typename SharedPtr< M >::Type experimentErrors) |
Add all experiments to this . More... | |
void | addExperiments (const std::vector< typename SharedPtr< V >::Type > &experimentScenarios, const std::vector< typename SharedPtr< V >::Type > &experimentOutputs, const std::vector< typename SharedPtr< M >::Type > &experimentErrors) |
Add all experiments to this . More... | |
void | setDiscrepancyBases (const std::vector< typename SharedPtr< V >::Type > &discrepancyBases) |
Add all discrepancy bases to this . More... | |
M & | getObservationErrorCovariance (unsigned int simulationNumber) |
const M & | getObservationErrorCovariance (unsigned int simulationNumber) const |
const ConcatenatedVectorRV< V, M > & | prior () const |
void | print (std::ostream &os) const |
void | setUpEmulator () |
void | setUpHyperpriors () |
Getters | |
const GPMSAOptions & | options () const |
Return GPMSAOptions structure. More... | |
GPMSAOptions & | options () |
unsigned int | numSimulations () const |
Return number of simulations. More... | |
unsigned int | numExperiments () const |
Return number of experiments. More... | |
const VectorSpace< V, M > & | scenarioSpace () const |
Return the vector space in which scenarios live. More... | |
const VectorSpace< V, M > & | parameterSpace () const |
Return the vector space in which parameters live. More... | |
const VectorSpace< V, M > & | simulationOutputSpace () const |
Return the vector space in which simulations live. More... | |
const VectorSpace< V, M > & | experimentOutputSpace () const |
Return the vector space in which experiments live. More... | |
const V & | simulationScenario (unsigned int simulationId) const |
Return the point in scenarioSpace for simulation simulationId . More... | |
const std::vector< typename SharedPtr< V >::Type > & | simulationScenarios () const |
Return all points in scenarioSpace for all simulations. More... | |
const V & | simulationParameter (unsigned int simulationId) const |
Return the point in parameterSpace for simulation simulationId . More... | |
const std::vector< typename SharedPtr< V >::Type > & | simulationParameters () const |
Return all points in parameterSpace for all simulations. More... | |
const V & | simulationOutput (unsigned int simulationId) const |
Return the simulation output for simulation simulationId . More... | |
const std::vector< typename SharedPtr< V >::Type > & | simulationOutputs () const |
Return all points in simulationOutputSpace for all simulations. More... | |
const V & | experimentScenario (unsigned int experimentId) const |
Return the point in scenarioSpace for experiment experimentId . More... | |
const std::vector< typename SharedPtr< V >::Type > & | experimentScenarios () const |
Return all points in scenarioSpace for all experiments. More... | |
const V & | experimentOutput (unsigned int experimentId) const |
Return the experiment output for experiment experimentId . More... | |
const std::vector< typename SharedPtr< V >::Type > & | experimentOutputs () const |
Return all points in experimentOutputSpace for all experiments. More... | |
const SharedPtr< M >::Type | experimentErrors () const |
Return all observation error covarince matrices for all experiments. More... | |
const BaseEnvironment & | env () const |
Return the QUESO environment. More... | |
const GPMSAEmulator< V, M > & | getGPMSAEmulator () const |
Return the GPMSAEmulator likelihood object. More... | |
Private Attributes | |
bool | allocated_m_opts |
GPMSAOptions * | m_opts |
Friends | |
std::ostream & | operator<< (std::ostream &os, const GPMSAFactory< V, M > &obj) |
QUESO::GPMSAFactory< V, M >::GPMSAFactory | ( | const BaseEnvironment & | env, |
GPMSAOptions * | opts, | ||
const BaseVectorRV< V, M > & | parameterPrior, | ||
const VectorSpace< V, M > & | scenarioSpace, | ||
const VectorSpace< V, M > & | parameterSpace, | ||
const VectorSpace< V, M > & | simulationOutputSpace, | ||
const VectorSpace< V, M > & | experimentOutputSpace, | ||
unsigned int | numSimulations, | ||
unsigned int | numExperiments | ||
) |
Constructor.
Definition at line 454 of file GPMSA.C.
References QUESO::GPMSAFactory< V, M >::allocated_m_opts, QUESO::VectorSpace< V, M >::dimGlobal(), QUESO::GPMSAFactory< V, M >::m_discrepancyBases, QUESO::GPMSAFactory< V, M >::m_env, QUESO::GPMSAFactory< V, M >::m_experimentOutputSpace, QUESO::GPMSAFactory< V, M >::m_observationErrorMatrices, QUESO::GPMSAFactory< V, M >::m_opts, QUESO::VectorSpace< V, M >::map(), QUESO::GPMSAFactory< V, M >::numExperiments(), and QUESO::BaseEnvironment::optionsInputFileName().
QUESO::GPMSAFactory< V, M >::~GPMSAFactory | ( | ) |
void QUESO::GPMSAFactory< V, M >::addExperiments | ( | const std::vector< typename SharedPtr< V >::Type > & | experimentScenarios, |
const std::vector< typename SharedPtr< V >::Type > & | experimentOutputs, | ||
const typename SharedPtr< M >::Type | experimentErrors | ||
) |
Add all experiments to this
.
This method takes a vector of all the experimental data and associated observation errors/correlations and stores them. This cannot be done piecemeal like the simulation data.
Each experiment ([i]) is assumed to correspond to the point expermientScenarios
[i] in scenario space. The observation error covariance matrix is assumed to be stored in experimentErrors
.
This method is solely for backward compatibility. Covariances between errors from different experiments will be ignored.
Definition at line 951 of file GPMSA.C.
void QUESO::GPMSAFactory< V, M >::addExperiments | ( | const std::vector< typename SharedPtr< V >::Type > & | experimentScenarios, |
const std::vector< typename SharedPtr< V >::Type > & | experimentOutputs, | ||
const std::vector< typename SharedPtr< M >::Type > & | experimentErrors | ||
) |
Add all experiments to this
.
This method takes a vector of all the experimental data and associated observation errors/correlations and stores them. This cannot be done piecemeal like the simulation data.
Each experiment ([i]) is assumed to correspond to the point expermientScenarios
[i] in scenario space. Each experiment has a corresponding error covariance matrix stored in experimentErrors
[i]
Definition at line 985 of file GPMSA.C.
void QUESO::GPMSAFactory< V, M >::addSimulation | ( | typename SharedPtr< V >::Type | simulationScenario, |
typename SharedPtr< V >::Type | simulationParameter, | ||
typename SharedPtr< V >::Type | simulationOutput | ||
) |
Add a simulation to this
.
The simulation added to this
is assumed to correspond to the point simulationScenario
in scenario space and simulationParameter
in parameter space. The simulation output is assumed to be stored in simulationOutput
.
Definition at line 703 of file GPMSA.C.
void QUESO::GPMSAFactory< V, M >::addSimulations | ( | const std::vector< typename SharedPtr< V >::Type > & | simulationScenarios, |
const std::vector< typename SharedPtr< V >::Type > & | simulationParameters, | ||
const std::vector< typename SharedPtr< V >::Type > & | simulationOutputs | ||
) |
Adds multiple simulations to this
.
This method takes a vector of simulations and calls addSimulation
on each element
Definition at line 723 of file GPMSA.C.
const BaseEnvironment & QUESO::GPMSAFactory< V, M >::env | ( | ) | const |
const SharedPtr<M>::Type QUESO::GPMSAFactory< V, M >::experimentErrors | ( | ) | const |
Return all observation error covarince matrices for all experiments.
const V & QUESO::GPMSAFactory< V, M >::experimentOutput | ( | unsigned int | experimentId | ) | const |
Return the experiment output for experiment experimentId
.
The returned vector is a point in experimentOutputSpace
Definition at line 670 of file GPMSA.C.
References QUESO::size.
const std::vector< typename SharedPtr< V >::Type > & QUESO::GPMSAFactory< V, M >::experimentOutputs | ( | ) | const |
Return all points in experimentOutputSpace
for all experiments.
This returns all points in experiment output space at which experiments were executed
Definition at line 682 of file GPMSA.C.
const VectorSpace< V, M > & QUESO::GPMSAFactory< V, M >::experimentOutputSpace | ( | ) | const |
Return the vector space in which experiments live.
Definition at line 587 of file GPMSA.C.
const V & QUESO::GPMSAFactory< V, M >::experimentScenario | ( | unsigned int | experimentId | ) | const |
Return the point in scenarioSpace
for experiment experimentId
.
This returns the point in scenario space at which experiment experimentId
was executed
Definition at line 651 of file GPMSA.C.
References QUESO::size.
const std::vector< typename SharedPtr< V >::Type > & QUESO::GPMSAFactory< V, M >::experimentScenarios | ( | ) | const |
Return all points in scenarioSpace
for all experiments.
This returns all points in scenario space at which experiments were executed
Definition at line 663 of file GPMSA.C.
const GPMSAEmulator< V, M > & QUESO::GPMSAFactory< V, M >::getGPMSAEmulator | ( | ) | const |
Return the GPMSAEmulator likelihood object.
Definition at line 696 of file GPMSA.C.
M & QUESO::GPMSAFactory< V, M >::getObservationErrorCovariance | ( | unsigned int | simulationNumber | ) |
Definition at line 1027 of file GPMSA.C.
const M & QUESO::GPMSAFactory< V, M >::getObservationErrorCovariance | ( | unsigned int | simulationNumber | ) | const |
Definition at line 1039 of file GPMSA.C.
unsigned int QUESO::GPMSAFactory< V, M >::numExperiments | ( | ) | const |
Return number of experiments.
Definition at line 559 of file GPMSA.C.
Referenced by QUESO::GPMSAFactory< V, M >::GPMSAFactory().
unsigned int QUESO::GPMSAFactory< V, M >::numSimulations | ( | ) | const |
const GPMSAOptions & QUESO::GPMSAFactory< V, M >::options | ( | ) | const |
GPMSAOptions & QUESO::GPMSAFactory< V, M >::options | ( | ) |
const VectorSpace< V, M > & QUESO::GPMSAFactory< V, M >::parameterSpace | ( | ) | const |
Return the vector space in which parameters live.
Definition at line 573 of file GPMSA.C.
void QUESO::GPMSAFactory< V, M >::print | ( | std::ostream & | os | ) | const |
const ConcatenatedVectorRV< V, M > & QUESO::GPMSAFactory< V, M >::prior | ( | ) | const |
Definition at line 1051 of file GPMSA.C.
const VectorSpace< V, M > & QUESO::GPMSAFactory< V, M >::scenarioSpace | ( | ) | const |
Return the vector space in which scenarios live.
Definition at line 566 of file GPMSA.C.
void QUESO::GPMSAFactory< V, M >::setDiscrepancyBases | ( | const std::vector< typename SharedPtr< V >::Type > & | discrepancyBases | ) |
Add all discrepancy bases to this
.
This method takes a vector of all the bases to use in the discrepancy model and stores a copy.
The user is responsible for normalizing each basis vector to be consistent with the discrepancy precision coefficients which will multiply them.
If no discrepancy basis is provided, a single "1 for each output" vector will be used.
For now we will assume that outputs are the same for each experiment (tau_ij and phi_ij are independent of i, in the notation of Higdon et al), and so each discrepancy basis can be expressed as a vector indexed by output index.
Definition at line 1013 of file GPMSA.C.
void QUESO::GPMSAFactory< V, M >::setUpEmulator | ( | ) |
Definition at line 739 of file GPMSA.C.
References QUESO::Map::Comm().
void QUESO::GPMSAFactory< V, M >::setUpHyperpriors | ( | ) |
Definition at line 1066 of file GPMSA.C.
References QUESO::MpiComm::Comm(), and QUESO::scalarProduct().
const V & QUESO::GPMSAFactory< V, M >::simulationOutput | ( | unsigned int | simulationId | ) | const |
Return the simulation output for simulation simulationId
.
The returned vector is a point in simulationOutputSpace
Definition at line 632 of file GPMSA.C.
const std::vector< typename SharedPtr< V >::Type > & QUESO::GPMSAFactory< V, M >::simulationOutputs | ( | ) | const |
Return all points in simulationOutputSpace
for all simulations.
This returns all points in simulation output space at which simulations were executed
Definition at line 644 of file GPMSA.C.
const VectorSpace< V, M > & QUESO::GPMSAFactory< V, M >::simulationOutputSpace | ( | ) | const |
Return the vector space in which simulations live.
Definition at line 580 of file GPMSA.C.
const V & QUESO::GPMSAFactory< V, M >::simulationParameter | ( | unsigned int | simulationId | ) | const |
Return the point in parameterSpace
for simulation simulationId
.
This returns the point in parameter space at which simulation simulationId
was executed
Definition at line 613 of file GPMSA.C.
const std::vector< typename SharedPtr< V >::Type > & QUESO::GPMSAFactory< V, M >::simulationParameters | ( | ) | const |
Return all points in parameterSpace
for all simulations.
This returns all points in parameter space at which simulations were executed
Definition at line 625 of file GPMSA.C.
const V & QUESO::GPMSAFactory< V, M >::simulationScenario | ( | unsigned int | simulationId | ) | const |
Return the point in scenarioSpace
for simulation simulationId
.
This returns the point in scenario space at which simulation simulationId
was executed
Definition at line 594 of file GPMSA.C.
const std::vector< typename SharedPtr< V >::Type > & QUESO::GPMSAFactory< V, M >::simulationScenarios | ( | ) | const |
Return all points in scenarioSpace
for all simulations.
This returns all points in scenario space at which simulations were executed
Definition at line 606 of file GPMSA.C.
|
friend |
|
private |
Definition at line 481 of file GPMSA.h.
Referenced by QUESO::GPMSAFactory< V, M >::GPMSAFactory().
ScopedPtr<M>::Type QUESO::GPMSAFactory< V, M >::BT_Wy_B_inv |
ScopedPtr<BoxSubset<V, M> >::Type QUESO::GPMSAFactory< V, M >::discrepancyCorrelationDomain |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::discrepancyCorrelationMax |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::discrepancyCorrelationMin |
ScopedPtr<VectorSpace<V, M> >::Type QUESO::GPMSAFactory< V, M >::discrepancyCorrelationSpace |
ScopedPtr<BoxSubset<V, M> >::Type QUESO::GPMSAFactory< V, M >::discrepancyPrecisionDomain |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::discrepancyPrecisionMax |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::discrepancyPrecisionMin |
ScopedPtr<BoxSubset<V, M> >::Type QUESO::GPMSAFactory< V, M >::emulatorCorrelationDomain |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::emulatorCorrelationMax |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::emulatorCorrelationMin |
ScopedPtr<VectorSpace<V, M> >::Type QUESO::GPMSAFactory< V, M >::emulatorCorrelationSpace |
ScopedPtr<BoxSubset<V, M> >::Type QUESO::GPMSAFactory< V, M >::emulatorDataPrecisionDomain |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::emulatorDataPrecisionMax |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::emulatorDataPrecisionMin |
ScopedPtr<BoxSubset<V, M> >::Type QUESO::GPMSAFactory< V, M >::emulatorPrecisionDomain |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::emulatorPrecisionMax |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::emulatorPrecisionMin |
ScopedPtr<VectorSpace<V, M> >::Type QUESO::GPMSAFactory< V, M >::emulatorPrecisionSpace |
ScopedPtr<GPMSAEmulator<V, M> >::Type QUESO::GPMSAFactory< V, M >::gpmsaEmulator |
ScopedPtr<M>::Type QUESO::GPMSAFactory< V, M >::K |
ScopedPtr<M>::Type QUESO::GPMSAFactory< V, M >::KT_K_inv |
ScopedPtr<M>::Type QUESO::GPMSAFactory< V, M >::m_BMatrix |
bool QUESO::GPMSAFactory< V, M >::m_constructedGP |
std::vector<typename SharedPtr<V>::Type> QUESO::GPMSAFactory< V, M >::m_discrepancyBases |
Definition at line 355 of file GPMSA.h.
Referenced by QUESO::GPMSAFactory< V, M >::GPMSAFactory().
ScopedPtr<BetaVectorRV<V, M> >::Type QUESO::GPMSAFactory< V, M >::m_discrepancyCorrelationStrength |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::m_discrepancyCorrelationStrengthAlphaVec |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::m_discrepancyCorrelationStrengthBetaVec |
std::vector<M> QUESO::GPMSAFactory< V, M >::m_discrepancyMatrices |
ScopedPtr<GammaVectorRV<V, M> >::Type QUESO::GPMSAFactory< V, M >::m_discrepancyPrecision |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::m_discrepancyPrecisionScaleVec |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::m_discrepancyPrecisionShapeVec |
ScopedPtr<BetaVectorRV<V, M> >::Type QUESO::GPMSAFactory< V, M >::m_emulatorCorrelationStrength |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::m_emulatorCorrelationStrengthAlphaVec |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::m_emulatorCorrelationStrengthBetaVec |
ScopedPtr<GammaVectorRV<V, M> >::Type QUESO::GPMSAFactory< V, M >::m_emulatorDataPrecision |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::m_emulatorDataPrecisionScaleVec |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::m_emulatorDataPrecisionShapeVec |
ScopedPtr<GammaVectorRV<V, M> >::Type QUESO::GPMSAFactory< V, M >::m_emulatorPrecision |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::m_emulatorPrecisionScaleVec |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::m_emulatorPrecisionShapeVec |
const BaseEnvironment& QUESO::GPMSAFactory< V, M >::m_env |
Definition at line 334 of file GPMSA.h.
Referenced by QUESO::GPMSAFactory< V, M >::GPMSAFactory().
std::vector<typename SharedPtr<V>::Type> QUESO::GPMSAFactory< V, M >::m_experimentOutputs |
const VectorSpace<V, M>& QUESO::GPMSAFactory< V, M >::m_experimentOutputSpace |
Definition at line 341 of file GPMSA.h.
Referenced by QUESO::GPMSAFactory< V, M >::GPMSAFactory().
std::vector<typename SharedPtr<V>::Type> QUESO::GPMSAFactory< V, M >::m_experimentScenarios |
unsigned int QUESO::GPMSAFactory< V, M >::m_numExperimentAdds |
unsigned int QUESO::GPMSAFactory< V, M >::m_numExperiments |
unsigned int QUESO::GPMSAFactory< V, M >::m_numSimulationAdds |
unsigned int QUESO::GPMSAFactory< V, M >::m_numSimulations |
ScopedPtr<GammaVectorRV<V, M> >::Type QUESO::GPMSAFactory< V, M >::m_observationalPrecision |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::m_observationalPrecisionScaleVec |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::m_observationalPrecisionShapeVec |
std::vector<typename SharedPtr<M>::Type> QUESO::GPMSAFactory< V, M >::m_observationErrorMatrices |
Definition at line 357 of file GPMSA.h.
Referenced by QUESO::GPMSAFactory< V, M >::GPMSAFactory().
SharedPtr<M>::Type QUESO::GPMSAFactory< V, M >::m_observationErrorMatrix |
|
private |
Definition at line 482 of file GPMSA.h.
Referenced by QUESO::GPMSAFactory< V, M >::GPMSAFactory().
const BaseVectorRV<V, M>& QUESO::GPMSAFactory< V, M >::m_parameterPrior |
const VectorSpace<V, M>& QUESO::GPMSAFactory< V, M >::m_parameterSpace |
const VectorSpace<V, M>& QUESO::GPMSAFactory< V, M >::m_scenarioSpace |
std::vector<typename SharedPtr<V>::Type> QUESO::GPMSAFactory< V, M >::m_simulationOutputs |
const VectorSpace<V, M>& QUESO::GPMSAFactory< V, M >::m_simulationOutputSpace |
std::vector<typename SharedPtr<V>::Type> QUESO::GPMSAFactory< V, M >::m_simulationParameters |
std::vector<typename SharedPtr<V>::Type> QUESO::GPMSAFactory< V, M >::m_simulationScenarios |
ScopedPtr<ConcatenatedVectorRV<V, M> >::Type QUESO::GPMSAFactory< V, M >::m_totalPrior |
ScopedPtr<M>::Type QUESO::GPMSAFactory< V, M >::m_TruncatedSVD_simulationOutputs |
ScopedPtr<UniformVectorRV<V, M> >::Type QUESO::GPMSAFactory< V, M >::m_truncationErrorPrecision |
unsigned int QUESO::GPMSAFactory< V, M >::num_svd_terms |
ScopedPtr<BoxSubset<V, M> >::Type QUESO::GPMSAFactory< V, M >::observationalPrecisionDomain |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::observationalPrecisionMax |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::observationalPrecisionMin |
ScopedPtr<VectorSpace<V, M> >::Type QUESO::GPMSAFactory< V, M >::observationalPrecisionSpace |
ScopedPtr<VectorSpace<V, M> >::Type QUESO::GPMSAFactory< V, M >::oneDSpace |
std::vector<const BaseVectorRV<V, M> *> QUESO::GPMSAFactory< V, M >::priors |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::residual |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::simulationOutputMeans |
ScopedPtr<BoxSubset<V, M> >::Type QUESO::GPMSAFactory< V, M >::totalDomain |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::totalMaxs |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::totalMins |
ScopedPtr<VectorSpace<V, M> >::Type QUESO::GPMSAFactory< V, M >::totalSpace |
ScopedPtr<BoxSubset<V, M> >::Type QUESO::GPMSAFactory< V, M >::truncationErrorPrecisionDomain |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::truncationErrorPrecisionMax |
ScopedPtr<V>::Type QUESO::GPMSAFactory< V, M >::truncationErrorPrecisionMin |