25 #include <queso/ExponentialScalarCovarianceFunction.h>
30 template<
class V,
class M>
42 *
m_env.
subDisplayFile() <<
"Entering ExponentialScalarCovarianceFunction<V,M>::constructor()"
48 *
m_env.
subDisplayFile() <<
"Leaving ExponentialScalarCovarianceFunction<V,M>::constructor()"
54 template<
class V,
class M>
57 if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 54)) {
58 *m_env.subDisplayFile() <<
"Entering ExponentialScalarCovarianceFunction<V,M>::destructor()"
59 <<
": prefix = " << m_prefix
63 if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 54)) {
64 *m_env.subDisplayFile() <<
"Leaving ExponentialScalarCovarianceFunction<V,M>::destructor()"
65 <<
": prefix = " << m_prefix
70 template<
class V,
class M>
74 if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 54)) {
75 *m_env.subDisplayFile() <<
"Entering ExponentialScalarCovarianceFunction<V,M>::value()"
81 double exponent = -(domainVector1 - domainVector2).norm2Sq()/(m_sigma*m_sigma);
83 result = m_a*std::exp(exponent);
85 if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 54)) {
86 *m_env.subDisplayFile() <<
"Leaving ExponentialScalarCovarianceFunction<V,M>::value()"
unsigned int displayVerbosity() const
A templated class for handling sets.
virtual ~ExponentialScalarCovarianceFunction()
Virtual destructor.
const BaseEnvironment & m_env
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
double value(const V &domainVector1, const V &domainVector2) const
Calculates the value of the exponential covariance function.
A templated (base) class to accommodate scalar covariance functions (of random variables).
ExponentialScalarCovarianceFunction(const char *prefix, const VectorSet< V, M > &basicDomainSet, double sigma, double a)
Default constructor.