25 #include <queso/GenericScalarCovarianceFunction.h>
30 template<
class V,
class M>
34 double (*covRoutinePtr)(
const V& positionVector1,
const V& positionVector2,
const void* routineDataPtr),
35 const void* routinesDataPtr)
38 m_covRoutinePtr (covRoutinePtr),
39 m_routineDataPtr (routinesDataPtr)
54 template<
class V,
class M>
57 if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 54)) {
58 *m_env.subDisplayFile() <<
"Entering GenericScalarCovarianceFunction<V,M>::destructor()"
59 <<
": prefix = " << m_prefix
63 if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 54)) {
64 *m_env.subDisplayFile() <<
"Leaving GenericScalarCovarianceFunction<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 GenericScalarCovarianceFunction<V,M>::value()"
81 double result = m_covRoutinePtr(positionVector1, positionVector2, m_routineDataPtr);
83 if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 54)) {
84 *m_env.subDisplayFile() <<
"Leaving GenericScalarCovarianceFunction<V,M>::value()"
unsigned int displayVerbosity() const
A templated class for handling sets.
double value(const V &positionVector1, const V &positionVector2) const
Calculates the value of the generic covariance function.
GenericScalarCovarianceFunction(const char *prefix, const VectorSet< V, M > &domainSet, double(*covRoutinePtr)(const V &positionVector1, const V &positionVector2, const void *routineDataPtr), const void *routinesDataPtr)
Default constructor.
const BaseEnvironment & m_env
virtual ~GenericScalarCovarianceFunction()
Virtual destructor.
#define queso_require_msg(asserted, msg)
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
A templated (base) class to accommodate scalar covariance functions (of random variables).