queso-0.57.1
|
A templated (base) class to accommodate scalar covariance functions (of random variables). More...
#include <ScalarCovarianceFunction.h>
Public Member Functions | |
Constructor/Destructor methods | |
BaseScalarCovarianceFunction (const char *prefix, const VectorSet< V, M > &basicDomainSet) | |
Default constructor. More... | |
virtual | ~BaseScalarCovarianceFunction () |
Virtual destructor. More... | |
Math methods | |
const VectorSet< V, M > & | basicDomainSet () const |
Domain set; access to private attribute m_basicDomainSet. More... | |
virtual double | value (const V &domainVector1, const V &domainVector2) const =0 |
The value of the covariance function. See template specialization. More... | |
Protected Attributes | |
const BaseEnvironment & | m_env |
std::string | m_prefix |
const VectorSet< V, M > & | m_basicDomainSet |
A templated (base) class to accommodate scalar covariance functions (of random variables).
This class allows the mathematical definition of the covariance function of a random variable Covariance provides a measure of the strength of the correlation between two or more sets of random variates. The covariance for two random variates \( X \) and \( Y \), each with sample size \( N \), is defined by the expectation value: \( cov (X,Y) = <(X-\mu_X)(Y-\mu_Y)> = < X Y > - \mu_X \mu_Y \) where \( \mu_X \) and \( \mu_Y \) are the respective means, which can be written out explicitly as
\[ cov (X,Y) = \sum_{i=1}^{N} \frac{(x_i - \bar{x})(y_i - \bar{y})}{N}\]
Definition at line 53 of file ScalarCovarianceFunction.h.
QUESO::BaseScalarCovarianceFunction< V, M >::BaseScalarCovarianceFunction | ( | const char * | prefix, |
const VectorSet< V, M > & | basicDomainSet | ||
) |
Default constructor.
Instantiates an object of the class given a prefix and the domain set.
Definition at line 31 of file ScalarCovarianceFunction.C.
References QUESO::BaseEnvironment::displayVerbosity(), QUESO::BaseScalarCovarianceFunction< V, M >::m_env, QUESO::BaseScalarCovarianceFunction< V, M >::m_prefix, and QUESO::BaseEnvironment::subDisplayFile().
|
virtual |
Virtual destructor.
Definition at line 53 of file ScalarCovarianceFunction.C.
const VectorSet< V, M > & QUESO::BaseScalarCovarianceFunction< V, M >::basicDomainSet | ( | ) | const |
Domain set; access to private attribute m_basicDomainSet.
Definition at line 70 of file ScalarCovarianceFunction.C.
|
pure virtual |
The value of the covariance function. See template specialization.
Implemented in QUESO::ExponentialScalarCovarianceFunction< V, M >, and QUESO::GenericScalarCovarianceFunction< V, M >.
|
protected |
Definition at line 78 of file ScalarCovarianceFunction.h.
|
protected |
Definition at line 76 of file ScalarCovarianceFunction.h.
Referenced by QUESO::BaseScalarCovarianceFunction< V, M >::BaseScalarCovarianceFunction(), QUESO::ExponentialScalarCovarianceFunction< V, M >::ExponentialScalarCovarianceFunction(), and QUESO::GenericScalarCovarianceFunction< V, M >::GenericScalarCovarianceFunction().
|
protected |
Definition at line 77 of file ScalarCovarianceFunction.h.
Referenced by QUESO::BaseScalarCovarianceFunction< V, M >::BaseScalarCovarianceFunction(), QUESO::ExponentialScalarCovarianceFunction< V, M >::ExponentialScalarCovarianceFunction(), and QUESO::GenericScalarCovarianceFunction< V, M >::GenericScalarCovarianceFunction().