queso-0.53.0
|
A class for handling a powered joint PDFs. More...
#include <PoweredJointPdf.h>
Public Member Functions | |
Constructor/Destructor methods | |
PoweredJointPdf (const char *prefix, const BaseJointPdf< V, M > &srcDensity, double exponent) | |
Constructor. More... | |
~PoweredJointPdf () | |
Destructor. More... | |
Math methods | |
double | actualValue (const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const |
Actual value of the powered PDF. More... | |
double | lnValue (const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const |
Logarithm of the value of the powered PDF. More... | |
void | setNormalizationStyle (unsigned int value) const |
Sets a value to be used in the normalization style of the powered PDF (ie, protected attribute m_srcDensity). More... | |
double | computeLogOfNormalizationFactor (unsigned int numSamples, bool updateFactorInternally) const |
TODO: Computes the logarithm of the normalization factor. More... | |
Public Member Functions inherited from QUESO::BaseJointPdf< V, M > | |
BaseJointPdf (const char *prefix, const VectorSet< V, M > &domainSet) | |
Default constructor. More... | |
virtual | ~BaseJointPdf () |
Destructor. More... | |
void | setLogOfNormalizationFactor (double value) const |
Sets a logarithmic value to be used in the normalization factor (stored in the protected attribute m_normalizationStyle.) More... | |
Public Member Functions inherited from QUESO::BaseScalarFunction< V, M > | |
BaseScalarFunction (const char *prefix, const VectorSet< V, M > &domainSet) | |
Default constructor. More... | |
virtual | ~BaseScalarFunction () |
Destructor. More... | |
const VectorSet< V, M > & | domainSet () const |
Access to the protected attribute m_domainSet: domain set of the scalar function. More... | |
Protected Attributes | |
const BaseJointPdf< V, M > & | m_srcDensity |
double | m_exponent |
Protected Attributes inherited from QUESO::BaseJointPdf< V, M > | |
unsigned int | m_normalizationStyle |
double | m_logOfNormalizationFactor |
Protected Attributes inherited from QUESO::BaseScalarFunction< V, M > | |
const BaseEnvironment & | m_env |
std::string | m_prefix |
const VectorSet< V, M > & | m_domainSet |
Domain set of the scalar function. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from QUESO::BaseJointPdf< V, M > | |
double | commonComputeLogOfNormalizationFactor (unsigned int numSamples, bool updateFactorInternally) const |
Common method (to the derived classes) to compute the logarithm of the normalization factor. More... | |
A class for handling a powered joint PDFs.
This class allows the mathematical definition of a Powered Joint PDF.
Definition at line 52 of file PoweredJointPdf.h.
QUESO::PoweredJointPdf< V, M >::PoweredJointPdf | ( | const char * | prefix, |
const BaseJointPdf< V, M > & | srcDensity, | ||
double | exponent | ||
) |
Constructor.
Constructs a new object of the class, given a prefix, the domain set and the exponent of the powered PDF.
Definition at line 33 of file PoweredJointPdf.C.
References QUESO::BaseEnvironment::displayVerbosity(), QUESO::BaseScalarFunction< V, M >::m_env, QUESO::BaseScalarFunction< V, M >::m_prefix, and QUESO::BaseEnvironment::subDisplayFile().
QUESO::PoweredJointPdf< V, M >::~PoweredJointPdf | ( | ) |
|
virtual |
Actual value of the powered PDF.
Finds the actual value using BaseJointPdf::actualValue() and apply it to the power of this
PDF, which given by exponent
, and multiplies it by the normalization factor, which is given by exp(m_logOfNormalizationFactor).
Implements QUESO::BaseJointPdf< V, M >.
Definition at line 76 of file PoweredJointPdf.C.
References queso_require_equal_to_msg, and queso_require_msg.
|
virtual |
TODO: Computes the logarithm of the normalization factor.
Implements QUESO::BaseJointPdf< V, M >.
Definition at line 142 of file PoweredJointPdf.C.
References queso_error_msg.
|
virtual |
Logarithm of the value of the powered PDF.
Finds the logarithm of actual value using BaseJointPdf::lnValue() and multiplies by the power of this
PDF, which given by exponent
, and then adds the normalization factor, which is given by m_logOfNormalizationFactor.
Implements QUESO::BaseJointPdf< V, M >.
Definition at line 110 of file PoweredJointPdf.C.
References queso_require_msg.
|
virtual |
Sets a value to be used in the normalization style of the powered PDF (ie, protected attribute m_srcDensity).
Reimplemented from QUESO::BaseJointPdf< V, M >.
Definition at line 68 of file PoweredJointPdf.C.
|
protected |
Definition at line 95 of file PoweredJointPdf.h.
|
protected |
Definition at line 94 of file PoweredJointPdf.h.