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