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
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 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.
const VectorSet< P_V, P_M > & indexSet() const
Index set; access to protected attribute m_indexSet.
std::string m_prefix
Prefix.
const BaseMatrixCovarianceFunction< P_V, P_M, Q_V, Q_M > & covarianceFunction() const
Covariance function; access to protected attribute m_covarianceFunction.
const BaseVectorFunction< P_V, P_M, Q_V, Q_M > & m_meanFunction
Mean function.
GaussianVectorRV< Q_V, Q_M > * m_savedRv
My RV.
const BaseMatrixCovarianceFunction< P_V, P_M, Q_V, Q_M > & m_covarianceFunction
Covariance function.
VectorSpace< Q_V, Q_M > * m_savedRvImageSpace
Image set of the RV.
A class for handling vector Gaussian random fields (GRF).
const BaseVectorFunction< P_V, P_M, Q_V, Q_M > & meanFunction() const
Mean function; access to protected attribute m_meanFunction.
Q_M * m_savedRvLawCovMatrix
Covariance matrix of the RV.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
const BaseEnvironment & m_env
Environment.
const VectorSet< Q_V, Q_M > & m_imageSetPerIndex
Image set of the RV, per index.
void copy(const VectorGaussianRandomField &src)
Copy method.
const VectorSet< P_V, P_M > & m_indexSet
Index set.
~VectorGaussianRandomField()
Destructor.
Q_V * m_savedRvLawExpVector
Vector of the mean value of the RV.
A templated (base) class to accommodate covariance matrix of (random) vector functions.
VectorGaussianRandomField & operator=(const VectorGaussianRandomField &rhs)
TODO: Assignment operator; it copies rhs to this.