queso-0.52.0
ScalarGaussianRandomField.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_SCALAR_GAUSSIAN_RANDOM_FIELD_H
26 #define UQ_SCALAR_GAUSSIAN_RANDOM_FIELD_H
27 
28 #include <queso/ScalarCovarianceFunction.h>
29 #include <queso/ScalarFunction.h>
30 #include <queso/GaussianVectorRV.h>
31 
32 namespace QUESO {
33 
45 template <class V, class M>
47 {
48  public:
50 
51 
54  ScalarGaussianRandomField(const char* prefix,
55  const VectorSet<V,M>& indexSet,
58 
60 
62 
66 
68 
69 
73 
75 
76  const VectorSet<V,M>& indexSet () const;
78 
80  const BaseScalarFunction<V,M>& meanFunction () const;
81 
84 
86 
89  void sampleFunction(const std::vector<V*>& fieldPositions, V& sampleValues);
91 
92 protected:
94  void copy (const ScalarGaussianRandomField& src);
95 
98 
100  std::string m_prefix;
101 
104 
107 
110 
112  std::vector<V*> m_savedPositions;
113 
116 
119 
122 
125 };
126 
127 } // End namespace QUESO
128 
129 #endif // UQ_SCALAR_GAUSSIAN_RANDOM_FIELD_H
const VectorSet< V, M > & m_indexSet
Index set.
A templated class for handling sets.
Definition: VectorSet.h:49
std::vector< V * > m_savedPositions
Saved positions.
V * m_savedRvLawExpVector
Vector of the mean value of the RV.
const BaseScalarCovarianceFunction< V, M > & m_covarianceFunction
Covariance function.
ScalarGaussianRandomField & operator=(const ScalarGaussianRandomField &rhs)
TODO: Assignment operator; it copies rhs to this.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
Definition: Environment.h:187
ScalarGaussianRandomField(const char *prefix, const VectorSet< V, M > &indexSet, const BaseScalarFunction< V, M > &meanFunction, const BaseScalarCovarianceFunction< V, M > &covarianceFunction)
Constructor.
A templated (base) class for handling scalar functions.
Definition: GslOptimizer.h:48
VectorSpace< V, M > * m_savedRvImageSpace
Image set of the RV.
const BaseEnvironment & m_env
Environment.
void sampleFunction(const std::vector< V * > &fieldPositions, V &sampleValues)
Function that samples from a Gaussian PDF.
A class for handling scalar Gaussian random fields (GRF).
M * m_savedRvLawCovMatrix
Covariance matrix of the RV.
GaussianVectorRV< V, M > * m_savedRv
My RV.
A templated (base) class to accommodate scalar covariance functions (of random variables).
const BaseScalarFunction< V, M > & meanFunction() const
Mean function; access to protected attribute m_meanFunction.
void copy(const ScalarGaussianRandomField &src)
Copy method.
const BaseScalarCovarianceFunction< V, M > & covarianceFunction() const
Covariance function; access to protected attribute m_covarianceFunction.
const BaseScalarFunction< V, M > & m_meanFunction
Mean function.
A class representing a vector space.
Definition: VectorSet.h:46
A class representing a Gaussian vector RV.
const VectorSet< V, M > & indexSet() const
Index set; access to protected attribute m_indexSet.

Generated on Thu Apr 23 2015 19:30:54 for queso-0.52.0 by  doxygen 1.8.5