25 #include <queso/UniformJointPdf.h> 
   26 #include <queso/GslVector.h> 
   27 #include <queso/GslMatrix.h> 
   32 template<
class V,
class M>
 
   53 template<
class V,
class M>
 
   58 template<
class V, 
class M>
 
   61   const V& domainVector,
 
   62   const V* domainDirection,
 
   65         V* hessianEffect)
 const 
   69   if (gradVector   ) *gradVector     = m_domainSet.vectorSpace().zeroVector();
 
   70   if (hessianMatrix) *hessianMatrix *= 0.;
 
   71   if (hessianEffect) *hessianEffect  = m_domainSet.vectorSpace().zeroVector();
 
   73   if (domainDirection) {}; 
 
   75   double volume = m_domainSet.volume();
 
   76   if (((boost::math::isnan)(volume)) ||
 
   77       (volume == -INFINITY         ) ||
 
   78       (volume ==  INFINITY         ) ||
 
   80       (m_normalizationStyle != 0   )) {
 
   87 template<
class V, 
class M>
 
   90   const V& domainVector,
 
   91   const V* domainDirection,
 
   94         V* hessianEffect)
 const 
   96   if (gradVector   ) *gradVector     = m_domainSet.vectorSpace().zeroVector();
 
   97   if (hessianMatrix) *hessianMatrix *= 0.;
 
   98   if (hessianEffect) *hessianEffect  = m_domainSet.vectorSpace().zeroVector();
 
  100   if (domainVector[0]) {}; 
 
  101   if (domainDirection) {}; 
 
  103   double volume = m_domainSet.volume();
 
  104   if (((boost::math::isnan)(volume)) ||
 
  105       (volume == -INFINITY         ) ||
 
  106       (volume ==  INFINITY         ) ||
 
  108       (m_normalizationStyle != 0   )) {
 
  115 template<
class V, 
class M>
 
  121   if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 2)) {
 
  122     *m_env.subDisplayFile() << 
"Entering UniformJointPdf<V,M>::computeLogOfNormalizationFactor()" 
  126   if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 2)) {
 
  127     *m_env.subDisplayFile() << 
"Leaving UniformJointPdf<V,M>::computeLogOfNormalizationFactor()" 
  128                             << 
", m_logOfNormalizationFactor = " << m_logOfNormalizationFactor
 
unsigned int displayVerbosity() const 
 
A templated class for handling sets. 
 
A templated (base) class for handling joint PDFs. 
 
double lnValue(const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const 
Logarithm of the value of the uniform PDF. 
 
double commonComputeLogOfNormalizationFactor(unsigned int numSamples, bool updateFactorInternally) const 
Common method (to the derived classes) to compute the logarithm of the normalization factor...
 
A class for handling uniform joint PDFs. 
 
#define queso_require_equal_to_msg(expr1, expr2, msg)
 
~UniformJointPdf()
Destructor. 
 
const BaseEnvironment & m_env
 
std::ofstream * subDisplayFile() const 
Access function for m_subDisplayFile (displays file on stream). 
 
double actualValue(const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const 
Actual value of the uniform PDF. 
 
UniformJointPdf(const char *prefix, const VectorSet< V, M > &domainSet)
Constructor. 
 
double computeLogOfNormalizationFactor(unsigned int numSamples, bool updateFactorInternally) const 
Computes the logarithm of the normalization factor.