queso-0.53.0
InfiniteDimensionalGaussian.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 QUESO_INFINITEDIMENSIONALGAUSSIAN_H
26 #define QUESO_INFINITEDIMENSIONALGAUSSIAN_H
27 
28 #include <boost/shared_ptr.hpp>
29 
30 #include <queso/Environment.h>
31 #include <queso/OperatorBase.h>
32 #include <queso/GslVector.h>
33 #include <queso/GslMatrix.h>
34 #include <queso/VectorSpace.h>
35 #include <queso/VectorSubset.h>
36 #include <queso/VectorRV.h>
37 #include <queso/InfiniteDimensionalMeasureBase.h>
38 #include <queso/FunctionBase.h>
39 
40 namespace QUESO {
41 
51 public:
53 
54 
65  const FunctionBase &mean, const OperatorBase &precision,
66  double alpha, double beta);
67 
71 
73  virtual boost::shared_ptr<FunctionBase> draw();
74 
76  virtual double get_kl_coefficient(unsigned int i) const;
77 
78 private:
79  // Mean
80  const FunctionBase & mean;
81 
82  // Precision -- I suppose you saw that one coming.
84 
85  // QUESO environment
87 
88  // Fractional power
89  double alpha;
90 
91  // Multiplicative constant
92  double beta;
93 
94  // The coefficients for the KL expansion
95  // (not multiplied by the evals)
96  std::vector<double> coeffs;
97 };
98 
99 } // End namespace QUESO
100 
101 #endif // QUESO_INFINITEDIMENSIONALGAUSSIAN_H
Abstract base class for function objects.
Definition: FunctionBase.h:46
virtual boost::shared_ptr< FunctionBase > draw()
Draw from the measure, and then return a shared pointer to the draw.
InfiniteDimensionalGaussian(const FullEnvironment &env, const FunctionBase &mean, const OperatorBase &precision, double alpha, double beta)
Construct a Gaussian with mean mean, precision operator precision. alpha controls regularity of draws...
This class sets up the full environment underlying the use of the QUESO library by an executable...
Definition: Environment.h:416
Abstract base class for infinite dimensional measures.
Class defining infinite dimensional Gaussian measures.
Abstract base class for operator objects. Operators are assumed to be symmetric and positive-definite...
Definition: OperatorBase.h:45
virtual double get_kl_coefficient(unsigned int i) const
Return coefficient i of the KL expansion of the current draw. Must be called after draw() ...

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