| 
    queso-0.55.0
    
   | 
 
A class for handling sampling from a Gamma probability density distribution. More...
#include <GammaVectorRealizer.h>


Public Member Functions | |
Constructor/Destructor methods  | |
| GammaVectorRealizer (const char *prefix, const VectorSet< V, M > &unifiedImageSet, const V &a, const V &b) | |
| Constructor.  More... | |
| ~GammaVectorRealizer () | |
| Destructor.  More... | |
  Public Member Functions inherited from QUESO::BaseVectorRealizer< V, M > | |
| BaseVectorRealizer (const char *prefix, const VectorSet< V, M > &unifiedImageSet, unsigned int subPeriod) | |
| Default constructor.  More... | |
| virtual | ~BaseVectorRealizer () | 
| Virtual destructor.  More... | |
| const VectorSet< V, M > & | unifiedImageSet () const | 
| Image set where the realizations lie. Access to protected attribute m_unifiedImageSet.  More... | |
| unsigned int | subPeriod () const | 
| Sub-period of the realization. Access to protected attribute m_subPeriod.  More... | |
Realization-related methods | |
| V | m_a | 
| V | m_b | 
| void | realization (V &nextValues) const | 
| Draws a realization.  More... | |
Additional Inherited Members | |
  Protected Attributes inherited from QUESO::BaseVectorRealizer< V, M > | |
| const BaseEnvironment & | m_env | 
| std::string | m_prefix | 
| const VectorSet< V, M > & | m_unifiedImageSet | 
| unsigned int | m_subPeriod | 
A class for handling sampling from a Gamma probability density distribution.
This class handles sampling from a Gamma probability density distribution, of parameters a and b. 
Definition at line 48 of file GammaVectorRealizer.h.
| QUESO::GammaVectorRealizer< V, M >::GammaVectorRealizer | ( | const char * | prefix, | 
| const VectorSet< V, M > & | unifiedImageSet, | ||
| const V & | a, | ||
| const V & | b | ||
| ) | 
Constructor.
Constructs a new object, given a prefix, the image set of the vector realizer, and the Gamma distribution parameters a and b, which are assigned to private attributes m_alpha and m_beta. 
Definition at line 35 of file GammaVectorRealizer.C.
References QUESO::BaseEnvironment::displayVerbosity(), QUESO::BaseVectorRealizer< V, M >::m_env, QUESO::BaseVectorRealizer< V, M >::m_prefix, and QUESO::BaseEnvironment::subDisplayFile().
| QUESO::GammaVectorRealizer< V, M >::~GammaVectorRealizer | ( | ) | 
      
  | 
  virtual | 
Draws a realization.
This function draws a realization of a Gamma distribution and saves it in nextValues. It internally checks whether the image set, where the realization should be drawn, belongs to the interval (0, infinity) - which is the range where Gamma distribution is defined over. 
Implements QUESO::BaseVectorRealizer< V, M >.
Definition at line 65 of file GammaVectorRealizer.C.
References QUESO::BoxSubset< V, M >::maxValues(), QUESO::BoxSubset< V, M >::minValues(), and queso_require_greater_equal_msg.
      
  | 
  private | 
Definition at line 80 of file GammaVectorRealizer.h.
      
  | 
  private | 
Definition at line 81 of file GammaVectorRealizer.h.