25 #ifndef UQ_SCALAR_GAUSSIAN_RANDOM_FIELD_H
26 #define UQ_SCALAR_GAUSSIAN_RANDOM_FIELD_H
28 #include <queso/ScalarCovarianceFunction.h>
29 #include <queso/ScalarFunction.h>
30 #include <queso/GaussianVectorRV.h>
48 template <
class V = GslVector,
class M = GslMatrix>
92 void sampleFunction(
const std::vector<V*>& fieldPositions, V& sampleValues);
132 #endif // UQ_SCALAR_GAUSSIAN_RANDOM_FIELD_H
M * m_savedRvLawCovMatrix
Covariance matrix of the RV.
V * m_savedRvLawExpVector
Vector of the mean value of the RV.
A templated (base) class for handling scalar functions.
GaussianVectorRV< V, M > * m_savedRv
My RV.
~ScalarGaussianRandomField()
Destructor.
VectorSpace< V, M > * m_savedRvImageSpace
Image set of the RV.
const BaseEnvironment & m_env
Environment.
void copy(const ScalarGaussianRandomField &src)
Copy method.
A class representing a vector space.
ScalarGaussianRandomField(const char *prefix, const VectorSet< V, M > &indexSet, const BaseScalarFunction< V, M > &meanFunction, const BaseScalarCovarianceFunction< V, M > &covarianceFunction)
Constructor.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
A class representing a Gaussian vector RV.
std::string m_prefix
Prefix.
A templated class for handling sets.
A templated (base) class to accommodate scalar covariance functions (of random variables).
const BaseScalarCovarianceFunction< V, M > & covarianceFunction() const
Covariance function; access to protected attribute m_covarianceFunction.
const BaseScalarCovarianceFunction< V, M > & m_covarianceFunction
Covariance function.
const BaseScalarFunction< V, M > & m_meanFunction
Mean function.
const BaseScalarFunction< V, M > & meanFunction() const
Mean function; access to protected attribute m_meanFunction.
ScalarGaussianRandomField & operator=(const ScalarGaussianRandomField &rhs)
TODO: Assignment operator; it copies rhs to this.
std::vector< V * > m_savedPositions
Saved positions.
const VectorSet< V, M > & indexSet() const
Index set; access to protected attribute m_indexSet.
A class for handling scalar Gaussian random fields (GRF).
const VectorSet< V, M > & m_indexSet
Index set.
void sampleFunction(const std::vector< V * > &fieldPositions, V &sampleValues)
Function that samples from a Gaussian PDF.