queso-0.53.0
|
A class representing a vector RV constructed via Inverse Gamma distribution. More...
#include <InverseGammaVectorRV.h>
Public Member Functions | |
Constructor/Destructor methods | |
InverseGammaVectorRV (const char *prefix, const VectorSet< V, M > &imageSet, const V &alpha, const V &beta) | |
Default Constructor. More... | |
virtual | ~InverseGammaVectorRV () |
Virtual destructor. More... | |
I/O methods | |
void | print (std::ostream &os) const |
TODO: Prints the vector RV. More... | |
Public Member Functions inherited from QUESO::BaseVectorRV< V, M > | |
BaseVectorRV (const char *prefix, const VectorSet< V, M > &imageSet) | |
Constructor. More... | |
virtual | ~BaseVectorRV () |
Virtual destructor. More... | |
const BaseEnvironment & | env () const |
QUESO environment; access to private attribute m_env. More... | |
const VectorSet< V, M > & | imageSet () const |
Image set of the vector RV; access to private attribute m_imageSet. More... | |
const BaseJointPdf< V, M > & | pdf () const |
Posterior Density Function of the vector RV; access to private attribute m_pdf. More... | |
const BaseVectorRealizer< V, M > & | realizer () const |
Finds a realization (sample) of the PDF of this vector RV; access to private attribute m_realizer. More... | |
const BaseVectorCdf< V, M > & | subCdf () const |
Finds the Cumulative Distribution Function of this vector RV, considering only the sub-sequence of data; access to private attribute m_subCdf. More... | |
const BaseVectorCdf< V, M > & | unifiedCdf () const |
Finds the Cumulative Distribution Function of this vector RV, considering the unified sequence of data; access to private attribute m_unifiedCdf. More... | |
const BaseVectorMdf< V, M > & | mdf () const |
Finds the Mass Density Function of this vector RV; access to private attribute m_mdf. More... | |
Additional Inherited Members | |
Protected Attributes inherited from QUESO::BaseVectorRV< V, M > | |
const BaseEnvironment & | m_env |
std::string | m_prefix |
const VectorSet< V, M > & | m_imageSet |
BaseJointPdf< V, M > * | m_pdf |
BaseVectorRealizer< V, M > * | m_realizer |
const BaseVectorCdf< V, M > * | m_subCdf |
const BaseVectorCdf< V, M > * | m_unifiedCdf |
const BaseVectorMdf< V, M > * | m_mdf |
A class representing a vector RV constructed via Inverse Gamma distribution.
This class allows the user to compute the value of a Inverse Gamma PDF and to generate realizations (samples) from it.
The Inverse Gamma probability density function is defined over the support x > 0 given a shape parameters a and a scale parameter b is:
where is the Gamma function:
The parameters a and b must all be positive, and the values x
must lie on the interval .
Definition at line 61 of file InverseGammaVectorRV.h.
QUESO::InverseGammaVectorRV< V, M >::InverseGammaVectorRV | ( | const char * | prefix, |
const VectorSet< V, M > & | imageSet, | ||
const V & | alpha, | ||
const V & | beta | ||
) |
Default Constructor.
Construct an Inverse Gamma vector RV with parameters alpha>0
and beta>0
, whose variates live in imageSet
. The constructor will check whether or not the data provided via imageSet
belongs to , which is a requirement imposed by the Inverse Gamma distribution. If this condition is not satisfied, an error message will be displayed and the program will exit.
Definition at line 35 of file InverseGammaVectorRV.C.
References QUESO::BaseEnvironment::displayVerbosity(), QUESO::BaseVectorRV< V, M >::imageSet(), QUESO::BaseVectorRV< V, M >::m_env, QUESO::BaseVectorRV< V, M >::m_imageSet, QUESO::BaseVectorRV< V, M >::m_mdf, QUESO::BaseVectorRV< V, M >::m_pdf, QUESO::BaseVectorRV< V, M >::m_prefix, QUESO::BaseVectorRV< V, M >::m_realizer, QUESO::BaseVectorRV< V, M >::m_subCdf, QUESO::BaseVectorRV< V, M >::m_unifiedCdf, QUESO::BoxSubset< V, M >::maxValues(), QUESO::BoxSubset< V, M >::minValues(), queso_require_greater_equal_msg, and QUESO::BaseEnvironment::subDisplayFile().
|
virtual |
Virtual destructor.
Definition at line 88 of file InverseGammaVectorRV.C.
|
virtual |
TODO: Prints the vector RV.
Implements QUESO::BaseVectorRV< V, M >.
Definition at line 99 of file InverseGammaVectorRV.C.