25 #ifndef UQ_BAYESIAN_JOINT_PROB_DENSITY_H
26 #define UQ_BAYESIAN_JOINT_PROB_DENSITY_H
30 #include <boost/math/special_functions.hpp>
32 #include <queso/JointPdf.h>
33 #include <queso/Environment.h>
34 #include <queso/ScalarFunction.h>
35 #include <queso/BoxSubset.h>
48 template <
class V = GslVector,
class M = GslMatrix>
60 double likelihoodExponent,
72 double actualValue (
const V& domainVector,
const V* domainDirection, V* gradVector, M* hessianMatrix, V* hessianEffect)
const;
79 double lnValue (
const V& domainVector,
const V* domainDirection, V* gradVector, M* hessianMatrix, V* hessianEffect)
const;
116 #endif // UQ_BAYESIAN_JOINT_PROB_DENSITY_H
double actualValue(const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const
Actual value of the PDF (scalar function).
double m_likelihoodExponent
A templated class for handling sets.
BayesianJointPdf(const char *prefix, const BaseJointPdf< V, M > &priorDensity, const BaseScalarFunction< V, M > &likelihoodFunction, double likelihoodExponent, const VectorSet< V, M > &intersectionDomain)
Default constructor.
void setNormalizationStyle(unsigned int value) const
Sets a value to be used in the normalization style of the prior density PDF (ie, protected attribute ...
A templated (base) class for handling joint PDFs.
double lnValue(const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const
Computes the logarithm of the value of the function.
double computeLogOfNormalizationFactor(unsigned int numSamples, bool updateFactorInternally) const
TODO: Computes the logarithm of the normalization factor.
const BaseJointPdf< V, M > & m_priorDensity
A templated (base) class for handling scalar functions.
const BaseScalarFunction< V, M > & m_likelihoodFunction
~BayesianJointPdf()
Destructor.
double m_lastComputedLogPrior
A class for handling Bayesian joint PDFs.
double lastComputedLogLikelihood() const
Returns the logarithm of the last computed likelihood value. Access to protected attribute m_lastComp...
double m_lastComputedLogLikelihood
double lastComputedLogPrior() const
Returns the logarithm of the last computed Prior value. Access to protected attribute m_lastComputedL...