queso-0.53.0
ExperimentStorage.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_STORAGE_H
26 #define UQ_EXPERIMENT_STORAGE_H
27 
28 #include <queso/VectorSpace.h>
29 
30 namespace QUESO {
31 
32 class GslVector;
33 class GslMatrix;
34 
35 template <class S_V = GslVector, class S_M = GslMatrix, class D_V = GslVector, class D_M = GslMatrix>
37 {
38 public:
41 
42  void addExperiment (const S_V& scenarioVec_standard, const D_V& dataVec_transformed, const D_M& covMat_transformed_inv);
43  unsigned int numExperiments () const;
44  const VectorSpace<S_V,S_M>& scenarioSpace () const;
45  const std::vector<const S_V* >& xs_standard () const;
46  const std::vector<unsigned int>& n_ys_transformed () const;
47  unsigned int n_y () const;
48  const S_V& scenarioVec_standard(unsigned int experimentId) const;
49  const D_V& dataVec_transformed (unsigned int experimentId) const;
50  const D_V& yVec_transformed () const;
51  const D_M& Wy () const;
52 
53  const BaseEnvironment& env () const;
54  void print (std::ostream& os) const;
55  friend std::ostream& operator<<(std::ostream& os,
57  obj.print(os);
58  return os;
59  }
60 
61 
62 private:
63  // Private variables
66  unsigned int m_paper_n;
67  std::vector<unsigned int> m_paper_n_ys_transformed;
68  unsigned int m_paper_n_y;
69 
70  unsigned int m_addId;
71  std::vector<const S_V* > m_scenarioVecs_standard;
72  std::vector<const D_V* > m_dataVecs_transformed;
73  std::vector<const D_M* > m_covMats_transformed_inv; // = W_i's
76  D_M* m_Wy;
77 };
78 
79 } // End namespace QUESO
80 
81 #endif // UQ_EXPERIMENT_STORAGE_H
void addExperiment(const S_V &scenarioVec_standard, const D_V &dataVec_transformed, const D_M &covMat_transformed_inv)
unsigned int numExperiments() const
const VectorSpace< S_V, S_M > & m_scenarioSpace
ExperimentStorage(const VectorSpace< S_V, S_M > &scenarioSpace, unsigned int numExperiments)
const D_V & dataVec_transformed(unsigned int experimentId) const
std::vector< unsigned int > m_paper_n_ys_transformed
std::vector< const D_M * > m_covMats_transformed_inv
VectorSpace< D_V, D_M > * m_y_space
unsigned int n_y() const
const std::vector< const S_V * > & xs_standard() const
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
Definition: Environment.h:193
std::vector< const D_V * > m_dataVecs_transformed
const S_V & scenarioVec_standard(unsigned int experimentId) const
friend std::ostream & operator<<(std::ostream &os, const ExperimentStorage< S_V, S_M, D_V, D_M > &obj)
const D_V & yVec_transformed() const
const std::vector< unsigned int > & n_ys_transformed() const
const BaseEnvironment & env() const
std::vector< const S_V * > m_scenarioVecs_standard
const BaseEnvironment & m_env
void print(std::ostream &os) const
const VectorSpace< S_V, S_M > & scenarioSpace() const
const D_M & Wy() const

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