queso-0.57.1
|
A class for handling vector Gaussian random fields (GRF). More...
#include <VectorGaussianRandomField.h>
Public Member Functions | |
Constructor/Destructor methods | |
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. More... | |
VectorGaussianRandomField (const VectorGaussianRandomField &obj) | |
TODO: Copy constructor. More... | |
~VectorGaussianRandomField () | |
Destructor. More... | |
Set methods | |
VectorGaussianRandomField & | operator= (const VectorGaussianRandomField &rhs) |
TODO: Assignment operator; it copies rhs to this . More... | |
Math methods | |
const VectorSet< P_V, P_M > & | indexSet () const |
Index set; access to protected attribute m_indexSet. More... | |
const BaseVectorFunction< P_V, P_M, Q_V, Q_M > & | meanFunction () const |
Mean function; access to protected attribute m_meanFunction. More... | |
const BaseMatrixCovarianceFunction < P_V, P_M, Q_V, Q_M > & | covarianceFunction () const |
Covariance function; access to protected attribute m_covarianceFunction. More... | |
void | sampleFunction (const std::vector< P_V * > &fieldPositions, Q_V &sampleValues) |
Function that samples from a Gaussian PDF. More... | |
Protected Member Functions | |
void | copy (const VectorGaussianRandomField &src) |
Copy method. More... | |
Protected Attributes | |
const BaseEnvironment & | m_env |
Environment. More... | |
std::string | m_prefix |
Prefix. More... | |
const VectorSet< P_V, P_M > & | m_indexSet |
Index set. More... | |
const VectorSet< Q_V, Q_M > & | m_imageSetPerIndex |
Image set of the RV, per index. More... | |
const BaseVectorFunction< P_V, P_M, Q_V, Q_M > & | m_meanFunction |
Mean function. More... | |
const BaseMatrixCovarianceFunction < P_V, P_M, Q_V, Q_M > & | m_covarianceFunction |
Covariance function. More... | |
std::vector< P_V * > | m_savedPositions |
Saved positions. More... | |
VectorSpace< Q_V, Q_M > * | m_savedRvImageSpace |
Image set of the RV. More... | |
Q_V * | m_savedRvLawExpVector |
Vector of the mean value of the RV. More... | |
Q_M * | m_savedRvLawCovMatrix |
Covariance matrix of the RV. More... | |
GaussianVectorRV< Q_V, Q_M > * | m_savedRv |
My RV. More... | |
A class for handling vector Gaussian random fields (GRF).
This class implements a vector Gaussian random field (GRF); i.e. a random field involving vector Gaussian probability density functions (PDFs) of the variables.
Definition at line 48 of file VectorGaussianRandomField.h.
QUESO::VectorGaussianRandomField< P_V, P_M, Q_V, Q_M >::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.
Constructs a new object, given a prefix, an index set, and both a mean and a covariance function. This method deletes the previous saved positions.
Definition at line 31 of file VectorGaussianRandomField.C.
References QUESO::VectorGaussianRandomField< P_V, P_M, Q_V, Q_M >::m_savedPositions.
QUESO::VectorGaussianRandomField< P_V, P_M, Q_V, Q_M >::VectorGaussianRandomField | ( | const VectorGaussianRandomField< P_V, P_M, Q_V, Q_M > & | obj | ) |
TODO: Copy constructor.
QUESO::VectorGaussianRandomField< P_V, P_M, Q_V, Q_M >::~VectorGaussianRandomField | ( | ) |
|
protected |
Copy method.
const BaseMatrixCovarianceFunction< P_V, P_M, Q_V, Q_M > & QUESO::VectorGaussianRandomField< P_V, P_M, Q_V, Q_M >::covarianceFunction | ( | ) | const |
Covariance function; access to protected attribute m_covarianceFunction.
Definition at line 73 of file VectorGaussianRandomField.C.
const VectorSet< P_V, P_M > & QUESO::VectorGaussianRandomField< P_V, P_M, Q_V, Q_M >::indexSet | ( | ) | const |
Index set; access to protected attribute m_indexSet.
Definition at line 59 of file VectorGaussianRandomField.C.
const BaseVectorFunction< P_V, P_M, Q_V, Q_M > & QUESO::VectorGaussianRandomField< P_V, P_M, Q_V, Q_M >::meanFunction | ( | ) | const |
Mean function; access to protected attribute m_meanFunction.
Definition at line 66 of file VectorGaussianRandomField.C.
VectorGaussianRandomField& QUESO::VectorGaussianRandomField< P_V, P_M, Q_V, Q_M >::operator= | ( | const VectorGaussianRandomField< P_V, P_M, Q_V, Q_M > & | rhs | ) |
TODO: Assignment operator; it copies rhs
to this
.
void QUESO::VectorGaussianRandomField< P_V, P_M, Q_V, Q_M >::sampleFunction | ( | const std::vector< P_V * > & | fieldPositions, |
Q_V & | sampleValues | ||
) |
Function that samples from a Gaussian PDF.
Given the field positions, this method performs a number of tests, calculates the mean vector, the covariance matrix and then it samples from a Gaussian random vector as many positions as required.
Definition at line 80 of file VectorGaussianRandomField.C.
References QUESO::queso_require_equal_to_msg.
|
protected |
Covariance function.
Definition at line 114 of file VectorGaussianRandomField.h.
|
protected |
Environment.
Definition at line 99 of file VectorGaussianRandomField.h.
|
protected |
Image set of the RV, per index.
Definition at line 108 of file VectorGaussianRandomField.h.
|
protected |
Index set.
Definition at line 105 of file VectorGaussianRandomField.h.
|
protected |
Mean function.
Definition at line 111 of file VectorGaussianRandomField.h.
|
protected |
Prefix.
Definition at line 102 of file VectorGaussianRandomField.h.
|
protected |
Saved positions.
Definition at line 117 of file VectorGaussianRandomField.h.
Referenced by QUESO::VectorGaussianRandomField< P_V, P_M, Q_V, Q_M >::VectorGaussianRandomField().
|
protected |
My RV.
Definition at line 129 of file VectorGaussianRandomField.h.
|
protected |
Image set of the RV.
Definition at line 120 of file VectorGaussianRandomField.h.
|
protected |
Covariance matrix of the RV.
Definition at line 126 of file VectorGaussianRandomField.h.
|
protected |
Vector of the mean value of the RV.
Definition at line 123 of file VectorGaussianRandomField.h.