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