queso-0.53.0
|
A class for handling scalar Gaussian random fields (GRF). More...
#include <ScalarGaussianRandomField.h>
Public Member Functions | |
Constructor/Destructor methods | |
ScalarGaussianRandomField (const char *prefix, const VectorSet< V, M > &indexSet, const BaseScalarFunction< V, M > &meanFunction, const BaseScalarCovarianceFunction< V, M > &covarianceFunction) | |
Constructor. More... | |
ScalarGaussianRandomField (const ScalarGaussianRandomField &obj) | |
TODO: Copy constructor. More... | |
~ScalarGaussianRandomField () | |
Destructor. More... | |
Set methods | |
ScalarGaussianRandomField & | operator= (const ScalarGaussianRandomField &rhs) |
TODO: Assignment operator; it copies rhs to this . More... | |
Math methods | |
const VectorSet< V, M > & | indexSet () const |
Index set; access to protected attribute m_indexSet. More... | |
const BaseScalarFunction< V, M > & | meanFunction () const |
Mean function; access to protected attribute m_meanFunction. More... | |
const BaseScalarCovarianceFunction < V, M > & | covarianceFunction () const |
Covariance function; access to protected attribute m_covarianceFunction. More... | |
void | sampleFunction (const std::vector< V * > &fieldPositions, V &sampleValues) |
Function that samples from a Gaussian PDF. More... | |
Protected Member Functions | |
void | copy (const ScalarGaussianRandomField &src) |
Copy method. More... | |
Protected Attributes | |
const BaseEnvironment & | m_env |
Environment. More... | |
std::string | m_prefix |
Prefix. More... | |
const VectorSet< V, M > & | m_indexSet |
Index set. More... | |
const BaseScalarFunction< V, M > & | m_meanFunction |
Mean function. More... | |
const BaseScalarCovarianceFunction < V, M > & | m_covarianceFunction |
Covariance function. More... | |
std::vector< V * > | m_savedPositions |
Saved positions. More... | |
VectorSpace< V, M > * | m_savedRvImageSpace |
Image set of the RV. More... | |
V * | m_savedRvLawExpVector |
Vector of the mean value of the RV. More... | |
M * | m_savedRvLawCovMatrix |
Covariance matrix of the RV. More... | |
GaussianVectorRV< V, M > * | m_savedRv |
My RV. More... | |
A class for handling scalar Gaussian random fields (GRF).
This class implements a scalar Gaussian random field (GRF); i.e. a random field involving Gaussian probability density functions (PDFs) of the variables. A one-dimensional GRF is also called a Gaussian process.
Definition at line 49 of file ScalarGaussianRandomField.h.
QUESO::ScalarGaussianRandomField< V, M >::ScalarGaussianRandomField | ( | const char * | prefix, |
const VectorSet< V, M > & | indexSet, | ||
const BaseScalarFunction< V, M > & | meanFunction, | ||
const BaseScalarCovarianceFunction< V, 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 32 of file ScalarGaussianRandomField.C.
References QUESO::ScalarGaussianRandomField< V, M >::m_savedPositions.
QUESO::ScalarGaussianRandomField< V, M >::ScalarGaussianRandomField | ( | const ScalarGaussianRandomField< V, M > & | obj | ) |
TODO: Copy constructor.
QUESO::ScalarGaussianRandomField< V, M >::~ScalarGaussianRandomField | ( | ) |
|
protected |
Copy method.
const BaseScalarCovarianceFunction< V, M > & QUESO::ScalarGaussianRandomField< V, M >::covarianceFunction | ( | ) | const |
Covariance function; access to protected attribute m_covarianceFunction.
Definition at line 72 of file ScalarGaussianRandomField.C.
const VectorSet< V, M > & QUESO::ScalarGaussianRandomField< V, M >::indexSet | ( | ) | const |
Index set; access to protected attribute m_indexSet.
Definition at line 58 of file ScalarGaussianRandomField.C.
const BaseScalarFunction< V, M > & QUESO::ScalarGaussianRandomField< V, M >::meanFunction | ( | ) | const |
Mean function; access to protected attribute m_meanFunction.
Definition at line 65 of file ScalarGaussianRandomField.C.
ScalarGaussianRandomField& QUESO::ScalarGaussianRandomField< V, M >::operator= | ( | const ScalarGaussianRandomField< V, M > & | rhs | ) |
TODO: Assignment operator; it copies rhs
to this
.
void QUESO::ScalarGaussianRandomField< V, M >::sampleFunction | ( | const std::vector< V * > & | fieldPositions, |
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 79 of file ScalarGaussianRandomField.C.
References queso_error_msg, queso_require_equal_to_msg, and queso_require_msg.
|
protected |
Covariance function.
Definition at line 112 of file ScalarGaussianRandomField.h.
|
protected |
Environment.
Definition at line 100 of file ScalarGaussianRandomField.h.
|
protected |
Index set.
Definition at line 106 of file ScalarGaussianRandomField.h.
|
protected |
Mean function.
Definition at line 109 of file ScalarGaussianRandomField.h.
|
protected |
Prefix.
Definition at line 103 of file ScalarGaussianRandomField.h.
|
protected |
Saved positions.
Definition at line 115 of file ScalarGaussianRandomField.h.
Referenced by QUESO::ScalarGaussianRandomField< V, M >::ScalarGaussianRandomField().
|
protected |
My RV.
Definition at line 127 of file ScalarGaussianRandomField.h.
|
protected |
Image set of the RV.
Definition at line 118 of file ScalarGaussianRandomField.h.
|
protected |
Covariance matrix of the RV.
Definition at line 124 of file ScalarGaussianRandomField.h.
|
protected |
Vector of the mean value of the RV.
Definition at line 121 of file ScalarGaussianRandomField.h.