queso-0.53.0
SimulationStorage.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-2015 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_SIMULATION_STORAGE_H
26 #define UQ_SIMULATION_STORAGE_H
27 
28 #include <queso/Environment.h>
29 #include <queso/VectorSpace.h>
30 
31 namespace QUESO {
32 
33 class GslVector;
34 class GslMatrix;
35 
36 template <class S_V = GslVector, class S_M = GslMatrix, class P_V = GslVector, class P_M = GslMatrix, class Q_V = GslVector, class Q_M = GslMatrix>
38 {
39 public:
43  unsigned int numSimulations);
45 
46  void addSimulation (const S_V& scenarioVec, const P_V& parameterVec, const Q_V& outputVec);
47  unsigned int numSimulations () const;
48  const std::vector<const S_V* >& xs_asterisks_original() const;
49  const std::vector<const P_V* >& ts_asterisks_original() const;
50  const VectorSpace<S_V,S_M>& scenarioSpace () const;
51  const VectorSpace<P_V,P_M>& parameterSpace () const;
52  const VectorSpace<Q_V,Q_M>& outputSpace () const;
53  const S_V& scenarioVec_original (unsigned int simulationId) const;
54  const P_V& parameterVec_original(unsigned int simulationId) const;
55  const Q_V& outputVec_original (unsigned int simulationId) const;
56  const Q_V& etaVec_original () const;
57 
58  const BaseEnvironment& env () const;
59  void print (std::ostream& os) const;
60  friend std::ostream& operator<<(std::ostream& os, const SimulationStorage<S_V,S_M,P_V,P_M,Q_V,Q_M>& obj)
61  {
62  obj.print(os);
63 
64  return os;
65  }
66 
67 
68 private:
69  // Private variables
74 
75  unsigned int m_paper_m;
76  unsigned int m_paper_n_eta;
77 
78  unsigned int m_addId;
79  std::vector<const S_V* > m_scenarioVecs_original;
80  std::vector<const P_V* > m_parameterVecs_original;
81  std::vector<const Q_V* > m_outputVecs_original;
82 
85 };
86 
87 } // End namespace QUESO
88 
89 #endif // UQ_SIMULATION_STORAGE_H
const VectorSpace< Q_V, Q_M > & m_outputSpace
const VectorSpace< S_V, S_M > & m_scenarioSpace
const Q_V & etaVec_original() const
const std::vector< const S_V * > & xs_asterisks_original() const
const VectorSpace< S_V, S_M > & scenarioSpace() const
void addSimulation(const S_V &scenarioVec, const P_V &parameterVec, const Q_V &outputVec)
const VectorSpace< Q_V, Q_M > & outputSpace() const
VectorSpace< Q_V, Q_M > * m_eta_space
std::vector< const P_V * > m_parameterVecs_original
const P_V & parameterVec_original(unsigned int simulationId) const
void print(std::ostream &os) const
SimulationStorage(const VectorSpace< S_V, S_M > &scenarioSpace, const VectorSpace< P_V, P_M > &parameterSpace, const VectorSpace< Q_V, Q_M > &outputSpace, unsigned int numSimulations)
const S_V & scenarioVec_original(unsigned int simulationId) const
const VectorSpace< P_V, P_M > & m_parameterSpace
const BaseEnvironment & env() const
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
Definition: Environment.h:193
const std::vector< const P_V * > & ts_asterisks_original() const
const VectorSpace< P_V, P_M > & parameterSpace() const
std::vector< const Q_V * > m_outputVecs_original
std::vector< const S_V * > m_scenarioVecs_original
const Q_V & outputVec_original(unsigned int simulationId) const
unsigned int numSimulations() const
const BaseEnvironment & m_env

Generated on Thu Jun 11 2015 13:52:32 for queso-0.53.0 by  doxygen 1.8.5