queso-0.57.1
|
A class for exponential covariances. More...
#include <ExponentialScalarCovarianceFunction.h>
Public Member Functions | |
Constructor/Destructor methods | |
ExponentialScalarCovarianceFunction (const char *prefix, const VectorSet< V, M > &basicDomainSet, double sigma, double a) | |
Default constructor. More... | |
virtual | ~ExponentialScalarCovarianceFunction () |
Virtual destructor. More... | |
Math methods | |
double | value (const V &domainVector1, const V &domainVector2) const |
Calculates the value of the exponential covariance function. More... | |
Public Member Functions inherited from QUESO::BaseScalarCovarianceFunction< V, M > | |
BaseScalarCovarianceFunction (const char *prefix, const VectorSet< V, M > &basicDomainSet) | |
Default constructor. More... | |
virtual | ~BaseScalarCovarianceFunction () |
Virtual destructor. More... | |
const VectorSet< V, M > & | basicDomainSet () const |
Domain set; access to private attribute m_basicDomainSet. More... | |
Protected Attributes | |
double | m_sigma |
double | m_a |
Protected Attributes inherited from QUESO::BaseScalarCovarianceFunction< V, M > | |
const BaseEnvironment & | m_env |
std::string | m_prefix |
const VectorSet< V, M > & | m_basicDomainSet |
A class for exponential covariances.
This class implements squared exponential covariance functions of the form:
\[ cov = a \exp{(-d^2/\sigma^2)}\]
, where \( d=d(x,y) \) is the distance between two points, \( \sigma^2 \) is the variance and \( a \) is the length scale. This is a stationary covariance function with smooth sample paths. Exponential covariance functions are largely employed in Gaussian processes.
Definition at line 52 of file ExponentialScalarCovarianceFunction.h.
QUESO::ExponentialScalarCovarianceFunction< V, M >::ExponentialScalarCovarianceFunction | ( | const char * | prefix, |
const VectorSet< V, M > & | basicDomainSet, | ||
double | sigma, | ||
double | a | ||
) |
Default constructor.
Instantiates an object of the class given a prefix, the domain set, the variance and a scale factor.
Definition at line 31 of file ExponentialScalarCovarianceFunction.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 55 of file ExponentialScalarCovarianceFunction.C.
|
virtual |
Calculates the value of the exponential covariance function.
The value of the exponential covariance function is: \( cov= a exp (-d^2/sigma)\), with \( d= \sqrt{(domainVector1 - domainVector1)^2} \)
Implements QUESO::BaseScalarCovarianceFunction< V, M >.
Definition at line 72 of file ExponentialScalarCovarianceFunction.C.
|
protected |
Definition at line 80 of file ExponentialScalarCovarianceFunction.h.
|
protected |
Definition at line 79 of file ExponentialScalarCovarianceFunction.h.