25 #ifndef UQ_BAYESIAN_JOINT_PROB_DENSITY_H
26 #define UQ_BAYESIAN_JOINT_PROB_DENSITY_H
29 #include <queso/math_macros.h>
30 #include <queso/JointPdf.h>
31 #include <queso/Environment.h>
32 #include <queso/ScalarFunction.h>
33 #include <queso/BoxSubset.h>
46 template <
class V = GslVector,
class M = GslMatrix>
47 class BayesianJointPdf :
public BaseJointPdf<V,M> {
56 const BaseJointPdf <V,M>& priorDensity,
57 const BaseScalarFunction<V,M>& likelihoodFunction,
58 double likelihoodExponent,
59 const VectorSet <V,M>& intersectionDomain);
70 double actualValue (
const V& domainVector,
const V* domainDirection, V* gradVector, M* hessianMatrix, V* hessianEffect)
const;
77 virtual double lnValue(
const V & domainVector)
const;
78 virtual double lnValue(
const V & domainVector, V & gradVector)
const;
125 #endif // UQ_BAYESIAN_JOINT_PROB_DENSITY_H
A templated (base) class for handling scalar functions.
double computeLogOfNormalizationFactor(unsigned int numSamples, bool updateFactorInternally) const
TODO: Computes the logarithm of the normalization factor.
double m_lastComputedLogPrior
double lastComputedLogLikelihood() const
Returns the logarithm of the last computed likelihood value. Access to protected attribute m_lastComp...
virtual double lnValue(const V &domainVector) const
Computes the logarithm of the value of the function.
virtual void distributionMean(V &meanVector) const
Mean value of the underlying random variable.
double m_lastComputedLogLikelihood
double lastComputedLogPrior() const
Returns the logarithm of the last computed Prior value. Access to protected attribute m_lastComputedL...
void setNormalizationStyle(unsigned int value) const
Sets a value to be used in the normalization style of the prior density PDF (ie, protected attribute ...
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
BayesianJointPdf(const char *prefix, const BaseJointPdf< V, M > &priorDensity, const BaseScalarFunction< V, M > &likelihoodFunction, double likelihoodExponent, const VectorSet< V, M > &intersectionDomain)
Default constructor.
A templated (base) class for handling joint PDFs.
const BaseScalarFunction< V, M > & m_likelihoodFunction
~BayesianJointPdf()
Destructor.
virtual void distributionVariance(M &covMatrix) const
Covariance matrix of the underlying random variable.
const BaseJointPdf< V, M > & m_priorDensity