queso-0.53.0
ExperimentModel.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_EXPERIMENT_MODEL_H
26 #define UQ_EXPERIMENT_MODEL_H
27 
28 #include <queso/ExperimentModelOptions.h>
29 #include <queso/ExperimentStorage.h>
30 #include <queso/SequenceOfVectors.h>
31 #include <queso/Environment.h>
32 
33 namespace QUESO {
34 
35 class GslVector;
36 class GslMatrix;
37 
38 template <class S_V = GslVector, class S_M = GslMatrix, class D_V = GslVector, class D_M = GslMatrix>
40 {
41 public:
42  ExperimentModel(const char* prefix,
43  const EmOptionsValues* alternativeOptionsValues, // dakota
44  const ExperimentStorage<S_V,S_M,D_V,D_M>& experimentStorage,
45  const std::vector<D_M* >& Dmats,
46  const std::vector<D_M* >& Kmats_interp);
48 
49  unsigned int numBasis () const;
50  unsigned int numBasisGroups() const;
51  const std::vector<unsigned int>& Gs () const;
52  const D_M& Dmat (unsigned int basisId) const;
53  const D_M& Dmat_BlockDiag() const;
54  const std::vector<D_M* >& Kmats_interp () const;
55 
56  const ExperimentModelOptions& optionsObj () const;
57  void print (std::ostream& os) const;
58 
59  friend std::ostream& operator<<(std::ostream& os,
61  obj.print(os);
62  return os;
63  }
64 
65 
66 private:
67  // Private variables
71 
72  unsigned int m_paper_p_x;
73  unsigned int m_paper_n;
74  unsigned int m_paper_p_delta;
75  unsigned int m_paper_n_y;
76  std::vector<D_M* > m_Dmats; // NOT to be deleted on destructor
77  std::vector<D_M* > m_Kmats_interp; // NOT to be deleted on destructor
78  VectorSpace<D_V,D_M>* m_n_y_space; // to be deleted on destructor
79  D_M* m_Dmat_BlockDiag; // to be deleted on destructor
80 };
81 
82 } // End namespace QUESO
83 
84 #endif // UQ_EXPERIMENT_MODEL_H
std::vector< D_M * > m_Dmats
const BaseEnvironment & m_env
unsigned int m_paper_p_delta
const std::vector< D_M * > & Kmats_interp() const
ExperimentModelOptions * m_experimentModelOptions
const EmOptionsValues * m_optionsObj
ExperimentModel(const char *prefix, const EmOptionsValues *alternativeOptionsValues, const ExperimentStorage< S_V, S_M, D_V, D_M > &experimentStorage, const std::vector< D_M * > &Dmats, const std::vector< D_M * > &Kmats_interp)
const std::vector< unsigned int > & Gs() const
const D_M & Dmat(unsigned int basisId) const
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
Definition: Environment.h:193
unsigned int numBasisGroups() const
unsigned int numBasis() const
std::vector< D_M * > m_Kmats_interp
const D_M & Dmat_BlockDiag() const
void print(std::ostream &os) const
friend std::ostream & operator<<(std::ostream &os, const ExperimentModel< S_V, S_M, D_V, D_M > &obj)
VectorSpace< D_V, D_M > * m_n_y_space
const ExperimentModelOptions & optionsObj() const

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