queso-0.57.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
GPMSA.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // QUESO - a library to support the Quantification of Uncertainty
5 // for Estimation, Simulation and Optimization
6 //
7 // Copyright (C) 2008-2017 The PECOS Development Team
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the Version 2.1 GNU Lesser General
11 // Public License as published by the Free Software Foundation.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
17 //
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
21 // Boston, MA 02110-1301 USA
22 //
23 //-----------------------------------------------------------------------el-
24 
25 #ifndef UQ_GPMSA_HELPER_H
26 #define UQ_GPMSA_HELPER_H
27 
28 #include <vector>
29 
30 #include <queso/Environment.h>
31 #include <queso/ScalarFunction.h>
32 #include <queso/VectorSpace.h>
33 #include <queso/VectorRV.h>
34 #include <queso/ConcatenatedVectorRV.h>
35 #include <queso/GammaVectorRV.h>
36 #include <queso/BetaVectorRV.h>
37 #include <queso/UniformVectorRV.h>
38 #include <queso/GPMSAOptions.h>
39 #include <queso/ScopedPtr.h>
40 #include <queso/SharedPtr.h>
41 
42 namespace QUESO {
43 
44 class GslVector;
45 class GslMatrix;
46 
47 template <class V = GslVector, class M = GslMatrix>
48 class GPMSAEmulator : public BaseScalarFunction<V, M>
49 {
50 public:
51  GPMSAEmulator(const VectorSet<V, M> & domain,
56  const unsigned int m_numSimulations,
57  const unsigned int m_numExperiments,
58  const std::vector<typename SharedPtr<V>::Type> & m_simulationScenarios,
59  const std::vector<typename SharedPtr<V>::Type> & m_simulationParameters,
60  const std::vector<typename SharedPtr<V>::Type> & m_simulationOutputs,
61  const std::vector<typename SharedPtr<V>::Type> & m_experimentScenarios,
62  const std::vector<typename SharedPtr<V>::Type> & m_experimentOutputs,
63  const std::vector<typename SharedPtr<V>::Type> & m_discrepancyBases,
64  const std::vector<typename SharedPtr<M>::Type> & m_observationErrorMatrices,
67  const V & residual_in,
68  const M & BT_Wy_B_inv_in,
69  const M & KT_K_inv_in,
70  const GPMSAOptions & opts);
71 
72  virtual ~GPMSAEmulator();
73 
74  virtual double lnValue(const V & domainVector,
75  const V * domainDirection,
76  V * gradVector,
77  M * hessianMatrix,
78  V * hessianEffect) const;
79 
80  virtual double actualValue(const V & domainVector,
81  const V * domainDirection,
82  V * gradVector,
83  M * hessianMatrix,
84  V * hessianEffect) const;
85 
90 
91  const unsigned int m_numSimulations;
92  const unsigned int m_numExperiments;
93 
94  const std::vector<typename SharedPtr<V>::Type> & m_simulationScenarios;
95  const std::vector<typename SharedPtr<V>::Type> & m_simulationParameters;
96  const std::vector<typename SharedPtr<V>::Type> & m_simulationOutputs;
97  const std::vector<typename SharedPtr<V>::Type> & m_experimentScenarios;
98  const std::vector<typename SharedPtr<V>::Type> & m_experimentOutputs;
99 
100  std::vector<typename SharedPtr<V>::Type> m_discrepancyBases;
101 
102  const std::vector<typename SharedPtr<M>::Type> & m_observationErrorMatrices;
103 
104  // Block diagonal matrix; sacrificing efficiency for clarity
106 
107  //
108  // Intermediate calculations we can cache
109  //
110  unsigned int num_svd_terms;
111 
113 
114  //
115  // Intermediate calculations cached by factory
116  //
117  const V & residual;
118 
119  const M & BT_Wy_B_inv;
120 
121  const M & KT_K_inv;
122 
124 };
125 
126 template <class V = GslVector, class M = GslMatrix>
128 {
129 public:
132  GPMSAOptions * opts,
133  const BaseVectorRV<V, M> & parameterPrior,
138  unsigned int numSimulations,
139  unsigned int numExperiments);
140 
142  ~GPMSAFactory();
143 
145 
146 
148  const GPMSAOptions & options() const;
149 
150  GPMSAOptions & options();
151 
153  unsigned int numSimulations() const;
154 
156  unsigned int numExperiments() const;
157 
159  const VectorSpace<V, M> & scenarioSpace() const;
160 
162  const VectorSpace<V, M> & parameterSpace() const;
163 
166 
169 
171 
175  const V & simulationScenario(unsigned int simulationId) const;
176 
178 
182  const std::vector<typename SharedPtr<V>::Type> & simulationScenarios() const;
183 
185 
189  const V & simulationParameter(unsigned int simulationId) const;
190 
192 
196  const std::vector<typename SharedPtr<V>::Type> & simulationParameters() const;
197 
199 
202  const V & simulationOutput(unsigned int simulationId) const;
203 
205 
209  const std::vector<typename SharedPtr<V>::Type> & simulationOutputs() const;
210 
212 
216  const V & experimentScenario(unsigned int experimentId) const;
217 
219 
223  const std::vector<typename SharedPtr<V>::Type> & experimentScenarios() const;
224 
226 
229  const V & experimentOutput(unsigned int experimentId) const;
230 
232 
236  const std::vector<typename SharedPtr<V>::Type> & experimentOutputs() const;
237 
239  const typename SharedPtr<M>::Type experimentErrors() const;
240 
242  const BaseEnvironment & env() const;
243 
245  const GPMSAEmulator<V, M> & getGPMSAEmulator() const;
246 
248 
250 
256  void addSimulation(typename SharedPtr<V>::Type simulationScenario,
257  typename SharedPtr<V>::Type simulationParameter,
258  typename SharedPtr<V>::Type simulationOutput);
259 
261 
265  void addSimulations(const std::vector<typename SharedPtr<V>::Type> & simulationScenarios,
266  const std::vector<typename SharedPtr<V>::Type> & simulationParameters,
267  const std::vector<typename SharedPtr<V>::Type> & simulationOutputs);
268 
270 
282  void addExperiments(const std::vector<typename SharedPtr<V>::Type> & experimentScenarios,
283  const std::vector<typename SharedPtr<V>::Type> & experimentOutputs,
284  const typename SharedPtr<M>::Type experimentErrors);
285 
287 
297  void addExperiments(const std::vector<typename SharedPtr<V>::Type> & experimentScenarios,
298  const std::vector<typename SharedPtr<V>::Type> & experimentOutputs,
299  const std::vector<typename SharedPtr<M>::Type> & experimentErrors);
300 
302 
318  void setDiscrepancyBases(const std::vector<typename SharedPtr<V>::Type> & discrepancyBases);
319 
320  M & getObservationErrorCovariance(unsigned int simulationNumber);
321 
322  const M & getObservationErrorCovariance(unsigned int simulationNumber) const;
323 
324  const ConcatenatedVectorRV<V, M> & prior() const;
325 
326  void print(std::ostream& os) const;
327  friend std::ostream & operator<<(std::ostream& os,
328  const GPMSAFactory<V, M> & obj)
329  {
330  obj.print(os);
331  return os;
332  }
333 
335 
337 
342 
343  unsigned int m_numSimulations;
344  unsigned int m_numExperiments;
345 
346  std::vector<typename SharedPtr<V>::Type> m_simulationScenarios;
347  std::vector<typename SharedPtr<V>::Type> m_simulationParameters;
348  std::vector<typename SharedPtr<V>::Type> m_simulationOutputs;
349  std::vector<typename SharedPtr<V>::Type> m_experimentScenarios;
350  std::vector<typename SharedPtr<V>::Type> m_experimentOutputs;
351 
352  // We will be recentering data around the simulation output mean
354 
355  std::vector<typename SharedPtr<V>::Type> m_discrepancyBases;
356 
357  std::vector<typename SharedPtr<M>::Type> m_observationErrorMatrices;
358 
359  // Counter for the number of adds that happen
360  unsigned int m_numSimulationAdds;
361  unsigned int m_numExperimentAdds;
362 
363  // The space in which the emulator (simulator) lives
364  // const VectorSpace<V, M> & m_emulatorSpace;
365 
366  // The emulator state
367  // const V & m_emulator;
368 
369  // Build the emulator once all data has been added
370  void setUpEmulator();
371 
372  // All the GP priors information for a scalar GP follows:
373  void setUpHyperpriors();
374 
375  // Number of dimensions preserved from the SVD of simulation outputs
376  unsigned int num_svd_terms;
377 
378  // Domains for all the hyperpriors
380 
381  // Truncation error precision
385 
386  // Emulator precision
391 
392  // Emulator correlation strength
397 
398  // Observational precision
403 
404  // Discrepancy precision
408 
409  // Discrepancy correlation strength
414 
415  // Emulator data precision
419 
420  // Now form full prior
424 
426 
427  std::vector<const BaseVectorRV<V, M> *> priors;
428 
429  // The hyperpriors
431  typename ScopedPtr<GammaVectorRV<V, M> >::Type m_emulatorPrecision; // (dim num_svd_terms) gamma(a, b) shape-rate
432  typename ScopedPtr<GammaVectorRV<V, M> >::Type m_observationalPrecision; // scalar gamma(a, b) shape-rate
433  typename ScopedPtr<BetaVectorRV<V, M> >::Type m_emulatorCorrelationStrength; // (dim scenariosspace + dim parameterspace)
434  typename ScopedPtr<GammaVectorRV<V, M> >::Type m_discrepancyPrecision; // (scalar) shape-rate
435  typename ScopedPtr<BetaVectorRV<V, M> >::Type m_discrepancyCorrelationStrength; // (dim scenariospace)
436  typename ScopedPtr<GammaVectorRV<V, M> >::Type m_emulatorDataPrecision; // (scalar) shape-rate
437  typename ScopedPtr<ConcatenatedVectorRV<V, M> >::Type m_totalPrior; // prior for joint parameters and hyperparameters
438 
451 
452  // The gaussian process object to build
455 
456  // Block diagonal matrix; sacrificing efficiency for clarity
458 
459  //
460  // Intermediate calculations we can cache
461  //
463 
464  std::vector<M> m_discrepancyMatrices;
465 
467 
468  // Matrix of svd basis vectors
470 
472 
473  // Cached calculation of (B^T*W_y*B)^-1
475 
476  // Cached calculation of (K^T*K)^-1
478 
479 
480 private:
483 };
484 
485 } // End namespace QUESO
486 
487 #endif // UQ_GPMSA_HELPER_H
std::shared_ptr< T > Type
Definition: SharedPtr.h:69
std::vector< typename SharedPtr< V >::Type > m_discrepancyBases
Definition: GPMSA.h:100
ScopedPtr< VectorSpace< V, M > >::Type oneDSpace
Definition: GPMSA.h:379
ScopedPtr< V >::Type m_emulatorPrecisionShapeVec
Definition: GPMSA.h:439
ScopedPtr< V >::Type m_emulatorPrecisionScaleVec
Definition: GPMSA.h:440
ScopedPtr< GammaVectorRV< V, M > >::Type m_emulatorDataPrecision
Definition: GPMSA.h:436
void setUpHyperpriors()
Definition: GPMSA.C:1066
ScopedPtr< V >::Type m_observationalPrecisionShapeVec
Definition: GPMSA.h:441
ScopedPtr< V >::Type truncationErrorPrecisionMax
Definition: GPMSA.h:383
ScopedPtr< UniformVectorRV< V, M > >::Type m_truncationErrorPrecision
Definition: GPMSA.h:430
A templated (base) class for handling scalar functions.
ScopedPtr< V >::Type truncationErrorPrecisionMin
Definition: GPMSA.h:382
std::vector< typename SharedPtr< M >::Type > m_observationErrorMatrices
Definition: GPMSA.h:357
const GPMSAOptions & options() const
Return GPMSAOptions structure.
Definition: GPMSA.C:536
friend std::ostream & operator<<(std::ostream &os, const GPMSAFactory< V, M > &obj)
Definition: GPMSA.h:327
ScopedPtr< BoxSubset< V, M > >::Type totalDomain
Definition: GPMSA.h:425
std::vector< typename SharedPtr< V >::Type > m_discrepancyBases
Definition: GPMSA.h:355
const VectorSpace< V, M > & m_parameterSpace
Definition: GPMSA.h:87
std::vector< typename SharedPtr< V >::Type > m_simulationParameters
Definition: GPMSA.h:347
unsigned int numSimulations() const
Return number of simulations.
Definition: GPMSA.C:552
std::vector< typename SharedPtr< V >::Type > m_experimentScenarios
Definition: GPMSA.h:349
ScopedPtr< V >::Type emulatorCorrelationMax
Definition: GPMSA.h:395
const V & simulationParameter(unsigned int simulationId) const
Return the point in parameterSpace for simulation simulationId.
Definition: GPMSA.C:613
A class representing a vector space.
Definition: VectorSet.h:49
bool m_constructedGP
Definition: GPMSA.h:454
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
Definition: Environment.h:198
ScopedPtr< BoxSubset< V, M > >::Type emulatorPrecisionDomain
Definition: GPMSA.h:390
const BaseEnvironment & m_env
Definition: GPMSA.h:334
M & getObservationErrorCovariance(unsigned int simulationNumber)
Definition: GPMSA.C:1027
ScopedPtr< VectorSpace< V, M > >::Type emulatorCorrelationSpace
Definition: GPMSA.h:393
const BaseEnvironment & env() const
Return the QUESO environment.
Definition: GPMSA.C:689
ScopedPtr< BoxSubset< V, M > >::Type emulatorDataPrecisionDomain
Definition: GPMSA.h:418
ScopedPtr< GPMSAEmulator< V, M > >::Type gpmsaEmulator
Definition: GPMSA.h:453
std::vector< M > m_discrepancyMatrices
Definition: GPMSA.h:464
const VectorSpace< V, M > & parameterSpace() const
Return the vector space in which parameters live.
Definition: GPMSA.C:573
ScopedPtr< M >::Type K
Definition: GPMSA.h:469
const VectorSpace< V, M > & simulationOutputSpace() const
Return the vector space in which simulations live.
Definition: GPMSA.C:580
const GPMSAEmulator< V, M > & getGPMSAEmulator() const
Return the GPMSAEmulator likelihood object.
Definition: GPMSA.C:696
const VectorSpace< V, M > & m_simulationOutputSpace
Definition: GPMSA.h:88
const ConcatenatedVectorRV< V, M > & m_totalPrior
Definition: GPMSA.h:112
ScopedPtr< ConcatenatedVectorRV< V, M > >::Type m_totalPrior
Definition: GPMSA.h:437
const M & BT_Wy_B_inv
Definition: GPMSA.h:119
const VectorSpace< V, M > & experimentOutputSpace() const
Return the vector space in which experiments live.
Definition: GPMSA.C:587
const std::vector< typename SharedPtr< V >::Type > & experimentOutputs() const
Return all points in experimentOutputSpace for all experiments.
Definition: GPMSA.C:682
ScopedPtr< V >::Type m_emulatorDataPrecisionShapeVec
Definition: GPMSA.h:449
ScopedPtr< V >::Type observationalPrecisionMin
Definition: GPMSA.h:400
ScopedPtr< V >::Type emulatorPrecisionMin
Definition: GPMSA.h:388
SharedPtr< M >::Type m_observationErrorMatrix
Definition: GPMSA.h:457
const std::vector< typename SharedPtr< M >::Type > & m_observationErrorMatrices
Definition: GPMSA.h:102
ScopedPtr< V >::Type m_emulatorCorrelationStrengthBetaVec
Definition: GPMSA.h:444
ScopedPtr< BoxSubset< V, M > >::Type discrepancyPrecisionDomain
Definition: GPMSA.h:407
GPMSAOptions * m_opts
Definition: GPMSA.h:482
ScopedPtr< VectorSpace< V, M > >::Type discrepancyCorrelationSpace
Definition: GPMSA.h:410
ScopedPtr< V >::Type discrepancyPrecisionMin
Definition: GPMSA.h:405
ScopedPtr< V >::Type observationalPrecisionMax
Definition: GPMSA.h:401
ScopedPtr< V >::Type emulatorCorrelationMin
Definition: GPMSA.h:394
virtual double lnValue(const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const
Logarithm of the value of the scalar function. Deprecated.
Definition: GPMSA.C:96
ScopedPtr< V >::Type residual
Definition: GPMSA.h:471
A templated class for handling sets.
Definition: VectorSet.h:52
ScopedPtr< V >::Type m_discrepancyCorrelationStrengthAlphaVec
Definition: GPMSA.h:447
unsigned int numExperiments() const
Return number of experiments.
Definition: GPMSA.C:559
ScopedPtr< VectorSpace< V, M > >::Type emulatorPrecisionSpace
Definition: GPMSA.h:387
const std::vector< typename SharedPtr< V >::Type > & simulationOutputs() const
Return all points in simulationOutputSpace for all simulations.
Definition: GPMSA.C:644
ScopedPtr< V >::Type totalMaxs
Definition: GPMSA.h:423
unsigned int num_svd_terms
Definition: GPMSA.h:110
ScopedPtr< VectorSpace< V, M > >::Type totalSpace
Definition: GPMSA.h:421
A class representing concatenated vector RVs.
const VectorSpace< V, M > & m_scenarioSpace
Definition: GPMSA.h:338
ScopedPtr< V >::Type totalMins
Definition: GPMSA.h:422
const V & experimentOutput(unsigned int experimentId) const
Return the experiment output for experiment experimentId.
Definition: GPMSA.C:670
void addSimulation(typename SharedPtr< V >::Type simulationScenario, typename SharedPtr< V >::Type simulationParameter, typename SharedPtr< V >::Type simulationOutput)
Add a simulation to this.
Definition: GPMSA.C:703
~GPMSAFactory()
Destructor.
Definition: GPMSA.C:528
const std::vector< typename SharedPtr< V >::Type > & m_experimentOutputs
Definition: GPMSA.h:98
const VectorSpace< V, M > & m_parameterSpace
Definition: GPMSA.h:339
ScopedPtr< V >::Type emulatorDataPrecisionMin
Definition: GPMSA.h:416
ScopedPtr< M >::Type KT_K_inv
Definition: GPMSA.h:477
unsigned int m_numSimulations
Definition: GPMSA.h:343
const GPMSAOptions & m_opts
Definition: GPMSA.h:123
unsigned int num_svd_terms
Definition: GPMSA.h:376
ScopedPtr< V >::Type m_discrepancyPrecisionScaleVec
Definition: GPMSA.h:446
void print(std::ostream &os) const
Definition: GPMSA.C:1058
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.
Definition: GPMSA.C:951
GPMSAEmulator(const VectorSet< V, M > &domain, const VectorSpace< V, M > &m_scenarioSpace, const VectorSpace< V, M > &m_parameterSpace, const VectorSpace< V, M > &m_simulationOutputSpace, const VectorSpace< V, M > &m_experimentOutputSpace, const unsigned int m_numSimulations, const unsigned int m_numExperiments, const std::vector< typename SharedPtr< V >::Type > &m_simulationScenarios, const std::vector< typename SharedPtr< V >::Type > &m_simulationParameters, const std::vector< typename SharedPtr< V >::Type > &m_simulationOutputs, const std::vector< typename SharedPtr< V >::Type > &m_experimentScenarios, const std::vector< typename SharedPtr< V >::Type > &m_experimentOutputs, const std::vector< typename SharedPtr< V >::Type > &m_discrepancyBases, const std::vector< typename SharedPtr< M >::Type > &m_observationErrorMatrices, const typename SharedPtr< M >::Type &m_observationErrorMatrix, const ConcatenatedVectorRV< V, M > &m_totalPrior, const V &residual_in, const M &BT_Wy_B_inv_in, const M &KT_K_inv_in, const GPMSAOptions &opts)
Definition: GPMSA.C:32
std::vector< typename SharedPtr< V >::Type > m_simulationOutputs
Definition: GPMSA.h:348
const BaseVectorRV< V, M > & m_parameterPrior
Definition: GPMSA.h:336
unsigned int m_numExperimentAdds
Definition: GPMSA.h:361
ScopedPtr< V >::Type m_emulatorDataPrecisionScaleVec
Definition: GPMSA.h:450
ScopedPtr< M >::Type m_TruncatedSVD_simulationOutputs
Definition: GPMSA.h:462
const unsigned int m_numExperiments
Definition: GPMSA.h:92
virtual double actualValue(const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const
Actual value of the scalar function.
Definition: GPMSA.C:443
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: GPMSA.C:454
std::vector< typename SharedPtr< V >::Type > m_simulationScenarios
Definition: GPMSA.h:346
const V & residual
Definition: GPMSA.h:117
unsigned int m_numSimulationAdds
Definition: GPMSA.h:360
const ConcatenatedVectorRV< V, M > & prior() const
Definition: GPMSA.C:1051
const M & KT_K_inv
Definition: GPMSA.h:121
ScopedPtr< GammaVectorRV< V, M > >::Type m_discrepancyPrecision
Definition: GPMSA.h:434
ScopedPtr< V >::Type discrepancyCorrelationMin
Definition: GPMSA.h:411
ScopedPtr< M >::Type m_BMatrix
Definition: GPMSA.h:466
std::vector< const BaseVectorRV< V, M > * > priors
Definition: GPMSA.h:427
const VectorSpace< V, M > & m_simulationOutputSpace
Definition: GPMSA.h:340
const std::vector< typename SharedPtr< V >::Type > & m_simulationParameters
Definition: GPMSA.h:95
ScopedPtr< VectorSpace< V, M > >::Type observationalPrecisionSpace
Definition: GPMSA.h:399
const VectorSpace< V, M > & m_experimentOutputSpace
Definition: GPMSA.h:89
ScopedPtr< V >::Type simulationOutputMeans
Definition: GPMSA.h:353
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.
Definition: GPMSA.C:723
bool allocated_m_opts
Definition: GPMSA.h:481
ScopedPtr< V >::Type emulatorDataPrecisionMax
Definition: GPMSA.h:417
A templated base class for handling vector RV.
Definition: VectorRV.h:53
ScopedPtr< BetaVectorRV< V, M > >::Type m_emulatorCorrelationStrength
Definition: GPMSA.h:433
void setUpEmulator()
Definition: GPMSA.C:739
ScopedPtr< BoxSubset< V, M > >::Type emulatorCorrelationDomain
Definition: GPMSA.h:396
void setDiscrepancyBases(const std::vector< typename SharedPtr< V >::Type > &discrepancyBases)
Add all discrepancy bases to this.
Definition: GPMSA.C:1013
ScopedPtr< V >::Type discrepancyCorrelationMax
Definition: GPMSA.h:412
const std::vector< typename SharedPtr< V >::Type > & experimentScenarios() const
Return all points in scenarioSpace for all experiments.
Definition: GPMSA.C:663
const std::vector< typename SharedPtr< V >::Type > & m_simulationOutputs
Definition: GPMSA.h:96
unsigned int m_numExperiments
Definition: GPMSA.h:344
ScopedPtr< V >::Type m_discrepancyCorrelationStrengthBetaVec
Definition: GPMSA.h:448
ScopedPtr< V >::Type m_observationalPrecisionScaleVec
Definition: GPMSA.h:442
ScopedPtr< V >::Type m_discrepancyPrecisionShapeVec
Definition: GPMSA.h:445
ScopedPtr< GammaVectorRV< V, M > >::Type m_emulatorPrecision
Definition: GPMSA.h:431
const SharedPtr< M >::Type experimentErrors() const
Return all observation error covarince matrices for all experiments.
std::vector< typename SharedPtr< V >::Type > m_experimentOutputs
Definition: GPMSA.h:350
const std::vector< typename SharedPtr< V >::Type > & simulationScenarios() const
Return all points in scenarioSpace for all simulations.
Definition: GPMSA.C:606
const std::vector< typename SharedPtr< V >::Type > & simulationParameters() const
Return all points in parameterSpace for all simulations.
Definition: GPMSA.C:625
const VectorSpace< V, M > & scenarioSpace() const
Return the vector space in which scenarios live.
Definition: GPMSA.C:566
const V & simulationOutput(unsigned int simulationId) const
Return the simulation output for simulation simulationId.
Definition: GPMSA.C:632
const V & experimentScenario(unsigned int experimentId) const
Return the point in scenarioSpace for experiment experimentId.
Definition: GPMSA.C:651
ScopedPtr< GammaVectorRV< V, M > >::Type m_observationalPrecision
Definition: GPMSA.h:432
ScopedPtr< BoxSubset< V, M > >::Type observationalPrecisionDomain
Definition: GPMSA.h:402
ScopedPtr< M >::Type BT_Wy_B_inv
Definition: GPMSA.h:474
ScopedPtr< BetaVectorRV< V, M > >::Type m_discrepancyCorrelationStrength
Definition: GPMSA.h:435
ScopedPtr< V >::Type emulatorPrecisionMax
Definition: GPMSA.h:389
const std::vector< typename SharedPtr< V >::Type > & m_experimentScenarios
Definition: GPMSA.h:97
const std::vector< typename SharedPtr< V >::Type > & m_simulationScenarios
Definition: GPMSA.h:94
const VectorSpace< V, M > & m_scenarioSpace
Definition: GPMSA.h:86
This class defines the options that specify the behaviour of the Gaussian process emulator...
Definition: GPMSAOptions.h:45
const VectorSpace< V, M > & m_experimentOutputSpace
Definition: GPMSA.h:341
ScopedPtr< BoxSubset< V, M > >::Type truncationErrorPrecisionDomain
Definition: GPMSA.h:384
ScopedPtr< V >::Type m_emulatorCorrelationStrengthAlphaVec
Definition: GPMSA.h:443
const unsigned int m_numSimulations
Definition: GPMSA.h:91
ScopedPtr< BoxSubset< V, M > >::Type discrepancyCorrelationDomain
Definition: GPMSA.h:413
virtual ~GPMSAEmulator()
Definition: GPMSA.C:89
SharedPtr< M >::Type m_observationErrorMatrix
Definition: GPMSA.h:105
const V & simulationScenario(unsigned int simulationId) const
Return the point in scenarioSpace for simulation simulationId.
Definition: GPMSA.C:594
ScopedPtr< V >::Type discrepancyPrecisionMax
Definition: GPMSA.h:406

Generated on Tue Jun 5 2018 19:48:55 for queso-0.57.1 by  doxygen 1.8.5