queso-0.53.0
|
#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 (V &simulationScenario, V &simulationParameter, V &simulationOutput) |
Add a simulation to this . More... | |
void | addSimulations (const std::vector< V * > &simulationScenarios, const std::vector< V * > &simulationParameters, const std::vector< V * > &simulationOutputs) |
Adds multiple simulations to this . More... | |
void | addExperiments (const std::vector< V * > &experimentScenarios, const std::vector< V * > &experimentOutputs, const M *experimentErrors) |
Add all experiments to this . More... | |
const ConcatenatedVectorRV< V, M > & | prior () const |
void | print (std::ostream &os) const |
void | setUpHyperpriors () |
Getters | |
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< V * > & | 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< V * > & | 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< V * > & | 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< V * > & | 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< V * > & | experimentOutputs () const |
Return all points in experimentOutputSpace for all experiments. More... | |
const M & | 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 | |
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 243 of file GPMSA.C.
References QUESO::GPMSAFactory< V, M >::m_constructedGP, QUESO::GPMSAFactory< V, M >::m_env, QUESO::GPMSAFactory< V, M >::m_opts, QUESO::BaseEnvironment::optionsInputFileName(), queso_error_msg, and QUESO::GPMSAFactory< V, M >::setUpHyperpriors().
QUESO::GPMSAFactory< V, M >::~GPMSAFactory | ( | ) |
void QUESO::GPMSAFactory< V, M >::addExperiments | ( | const std::vector< V * > & | experimentScenarios, |
const std::vector< V * > & | experimentOutputs, | ||
const M * | 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
.
Definition at line 502 of file GPMSA.C.
References queso_require_less_equal_msg.
void QUESO::GPMSAFactory< V, M >::addSimulation | ( | V & | simulationScenario, |
V & | simulationParameter, | ||
V & | 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 454 of file GPMSA.C.
References queso_require_less_msg.
void QUESO::GPMSAFactory< V, M >::addSimulations | ( | const std::vector< V * > & | simulationScenarios, |
const std::vector< V * > & | simulationParameters, | ||
const std::vector< V * > & | simulationOutputs | ||
) |
Adds multiple simulations to this
.
This method takes a vector of simulations and calls addSimulation
on each element
Definition at line 489 of file GPMSA.C.
const BaseEnvironment & QUESO::GPMSAFactory< V, M >::env | ( | ) | const |
const M & QUESO::GPMSAFactory< V, M >::experimentErrors | ( | ) | const |
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 414 of file GPMSA.C.
References queso_require_less_msg, and queso_require_msg.
const std::vector< V * > & 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 426 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 331 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 395 of file GPMSA.C.
References queso_require_less_msg, and queso_require_msg.
const std::vector< V * > & 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 407 of file GPMSA.C.
const GPMSAEmulator< V, M > & QUESO::GPMSAFactory< V, M >::getGPMSAEmulator | ( | ) | const |
unsigned int QUESO::GPMSAFactory< V, M >::numExperiments | ( | ) | const |
unsigned int QUESO::GPMSAFactory< V, M >::numSimulations | ( | ) | const |
const VectorSpace< V, M > & QUESO::GPMSAFactory< V, M >::parameterSpace | ( | ) | const |
Return the vector space in which parameters live.
Definition at line 317 of file GPMSA.C.
void QUESO::GPMSAFactory< V, M >::print | ( | std::ostream & | os | ) | const |
const ConcatenatedVectorRV< V, M > & QUESO::GPMSAFactory< V, M >::prior | ( | ) | const |
const VectorSpace< V, M > & QUESO::GPMSAFactory< V, M >::scenarioSpace | ( | ) | const |
Return the vector space in which scenarios live.
Definition at line 310 of file GPMSA.C.
void QUESO::GPMSAFactory< V, M >::setUpHyperpriors | ( | ) |
Definition at line 555 of file GPMSA.C.
Referenced by QUESO::GPMSAFactory< V, M >::GPMSAFactory().
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 376 of file GPMSA.C.
References queso_require_less_msg, and queso_require_msg.
const std::vector< V * > & 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 388 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 324 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 357 of file GPMSA.C.
References queso_require_less_msg, and queso_require_msg.
const std::vector< V * > & 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 369 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 338 of file GPMSA.C.
References queso_require_less_msg, and queso_require_msg.
const std::vector< V * > & 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 350 of file GPMSA.C.
|
friend |
BoxSubset<V, M>* QUESO::GPMSAFactory< V, M >::discrepancyCorrelationDomain |
V* QUESO::GPMSAFactory< V, M >::discrepancyCorrelationMax |
V* QUESO::GPMSAFactory< V, M >::discrepancyCorrelationMin |
VectorSpace<V, M>* QUESO::GPMSAFactory< V, M >::discrepancyCorrelationSpace |
BoxSubset<V, M>* QUESO::GPMSAFactory< V, M >::discrepancyPrecisionDomain |
V* QUESO::GPMSAFactory< V, M >::discrepancyPrecisionMax |
V* QUESO::GPMSAFactory< V, M >::discrepancyPrecisionMin |
BoxSubset<V, M>* QUESO::GPMSAFactory< V, M >::emulatorCorrelationDomain |
V* QUESO::GPMSAFactory< V, M >::emulatorCorrelationMax |
V* QUESO::GPMSAFactory< V, M >::emulatorCorrelationMin |
VectorSpace<V, M>* QUESO::GPMSAFactory< V, M >::emulatorCorrelationSpace |
BoxSubset<V, M>* QUESO::GPMSAFactory< V, M >::emulatorDataPrecisionDomain |
V* QUESO::GPMSAFactory< V, M >::emulatorDataPrecisionMax |
V* QUESO::GPMSAFactory< V, M >::emulatorDataPrecisionMin |
BoxSubset<V, M>* QUESO::GPMSAFactory< V, M >::emulatorMeanDomain |
V* QUESO::GPMSAFactory< V, M >::emulatorMeanMax |
V* QUESO::GPMSAFactory< V, M >::emulatorMeanMin |
BoxSubset<V, M>* QUESO::GPMSAFactory< V, M >::emulatorPrecisionDomain |
V* QUESO::GPMSAFactory< V, M >::emulatorPrecisionMax |
V* QUESO::GPMSAFactory< V, M >::emulatorPrecisionMin |
GPMSAEmulator<V, M>* QUESO::GPMSAFactory< V, M >::gpmsaEmulator |
bool QUESO::GPMSAFactory< V, M >::m_constructedGP |
Definition at line 360 of file GPMSA.h.
Referenced by QUESO::GPMSAFactory< V, M >::GPMSAFactory().
BetaVectorRV<V, M>* QUESO::GPMSAFactory< V, M >::m_discrepancyCorrelationStrength |
V* QUESO::GPMSAFactory< V, M >::m_discrepancyCorrelationStrengthAlphaVec |
V* QUESO::GPMSAFactory< V, M >::m_discrepancyCorrelationStrengthBetaVec |
GammaVectorRV<V, M>* QUESO::GPMSAFactory< V, M >::m_discrepancyPrecision |
V* QUESO::GPMSAFactory< V, M >::m_discrepancyPrecisionScaleVec |
V* QUESO::GPMSAFactory< V, M >::m_discrepancyPrecisionShapeVec |
BetaVectorRV<V, M>* QUESO::GPMSAFactory< V, M >::m_emulatorCorrelationStrength |
V* QUESO::GPMSAFactory< V, M >::m_emulatorCorrelationStrengthAlphaVec |
V* QUESO::GPMSAFactory< V, M >::m_emulatorCorrelationStrengthBetaVec |
GammaVectorRV<V, M>* QUESO::GPMSAFactory< V, M >::m_emulatorDataPrecision |
V* QUESO::GPMSAFactory< V, M >::m_emulatorDataPrecisionScaleVec |
V* QUESO::GPMSAFactory< V, M >::m_emulatorDataPrecisionShapeVec |
UniformVectorRV<V, M>* QUESO::GPMSAFactory< V, M >::m_emulatorMean |
GammaVectorRV<V, M>* QUESO::GPMSAFactory< V, M >::m_emulatorPrecision |
V* QUESO::GPMSAFactory< V, M >::m_emulatorPrecisionScaleVec |
V* QUESO::GPMSAFactory< V, M >::m_emulatorPrecisionShapeVec |
const BaseEnvironment& QUESO::GPMSAFactory< V, M >::m_env |
Definition at line 260 of file GPMSA.h.
Referenced by QUESO::GPMSAFactory< V, M >::GPMSAFactory().
const M* QUESO::GPMSAFactory< V, M >::m_experimentErrors |
std::vector<V *> QUESO::GPMSAFactory< V, M >::m_experimentOutputs |
const VectorSpace<V, M>& QUESO::GPMSAFactory< V, M >::m_experimentOutputSpace |
std::vector<V *> 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 |
|
private |
Definition at line 363 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<V *> QUESO::GPMSAFactory< V, M >::m_simulationOutputs |
const VectorSpace<V, M>& QUESO::GPMSAFactory< V, M >::m_simulationOutputSpace |
std::vector<V *> QUESO::GPMSAFactory< V, M >::m_simulationParameters |
std::vector<V *> QUESO::GPMSAFactory< V, M >::m_simulationScenarios |
ConcatenatedVectorRV<V, M>* QUESO::GPMSAFactory< V, M >::m_totalPrior |
VectorSpace<V, M>* QUESO::GPMSAFactory< V, M >::oneDSpace |
std::vector<const BaseVectorRV<V, M> *> QUESO::GPMSAFactory< V, M >::priors |
BoxSubset<V, M>* QUESO::GPMSAFactory< V, M >::totalDomain |
V* QUESO::GPMSAFactory< V, M >::totalMaxs |
V* QUESO::GPMSAFactory< V, M >::totalMins |
VectorSpace<V, M>* QUESO::GPMSAFactory< V, M >::totalSpace |