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   double lnValue                  (
const V& domainVector, 
const V* domainDirection, V* gradVector, M* hessianMatrix, V* hessianEffect) 
const;
 
  119 #endif // UQ_BAYESIAN_JOINT_PROB_DENSITY_H 
A templated (base) class for handling scalar functions. 
 
double m_lastComputedLogPrior
 
double lastComputedLogLikelihood() const 
Returns the logarithm of the last computed likelihood value. Access to protected attribute m_lastComp...
 
const BaseScalarFunction< V, M > & m_likelihoodFunction
 
double actualValue(const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const 
Actual value of the PDF (scalar function). 
 
~BayesianJointPdf()
Destructor. 
 
double m_likelihoodExponent
 
A templated (base) class for handling joint PDFs. 
 
BayesianJointPdf(const char *prefix, const BaseJointPdf< V, M > &priorDensity, const BaseScalarFunction< V, M > &likelihoodFunction, double likelihoodExponent, const VectorSet< V, M > &intersectionDomain)
Default constructor. 
 
#define queso_not_implemented()
 
double lnValue(const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const 
Computes the logarithm of the value of the function. 
 
virtual void distributionVariance(M &covMatrix) const 
Covariance matrix of the underlying random variable. 
 
double m_lastComputedLogLikelihood
 
void setNormalizationStyle(unsigned int value) const 
Sets a value to be used in the normalization style of the prior density PDF (ie, protected attribute ...
 
const BaseJointPdf< V, M > & m_priorDensity
 
virtual void distributionMean(V &meanVector) const 
Mean value of the underlying random variable. 
 
double computeLogOfNormalizationFactor(unsigned int numSamples, bool updateFactorInternally) const 
TODO: Computes the logarithm of the normalization factor. 
 
double lastComputedLogPrior() const 
Returns the logarithm of the last computed Prior value. Access to protected attribute m_lastComputedL...