25 #ifndef UQ_JOINT_PROB_DENSITY_H
26 #define UQ_JOINT_PROB_DENSITY_H
30 #include <boost/math/special_functions.hpp>
32 #include <queso/Environment.h>
33 #include <queso/ScalarFunction.h>
34 #include <queso/BoxSubset.h>
55 template <
class V = GslVector,
class M = GslMatrix>
70 virtual double actualValue (
const V& domainVector,
const V* domainDirection, V* gradVector, M* hessianMatrix, V* hessianEffect)
const = 0;
74 virtual double lnValue (
const V& domainVector,
const V* domainDirection, V* gradVector, M* hessianMatrix, V* hessianEffect)
const = 0;
108 #endif // UQ_JOINT_PROB_DENSITY_H
unsigned int m_normalizationStyle
BaseJointPdf(const char *prefix, const VectorSet< V, M > &domainSet)
Default constructor.
A templated class for handling sets.
double m_logOfNormalizationFactor
A templated (base) class for handling joint PDFs.
virtual double lnValue(const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const =0
Logarithm of the value of the function.
double commonComputeLogOfNormalizationFactor(unsigned int numSamples, bool updateFactorInternally) const
Common method (to the derived classes) to compute the logarithm of the normalization factor...
A templated (base) class for handling scalar functions.
virtual double actualValue(const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const =0
Actual value of the PDF (scalar function).
virtual void setNormalizationStyle(unsigned int value) const
Sets a value to be used in the normalization style (stored in the protected attribute m_normalization...
virtual double computeLogOfNormalizationFactor(unsigned int numSamples, bool m_logOfNormalizationFactor) const =0
Computes the logarithm of the normalization factor. See template specialization.
const VectorSet< V, M > & domainSet() const
Access to the protected attribute m_domainSet: domain set of the scalar function. ...
void setLogOfNormalizationFactor(double value) const
Sets a logarithmic value to be used in the normalization factor (stored in the protected attribute m_...
virtual ~BaseJointPdf()
Destructor.