queso-0.51.1
List of all members
QUESO::BasicPdfsGsl Class Reference

TODO: Base class for basic PDFs using Gsl library. More...

#include <BasicPdfsGsl.h>

Inheritance diagram for QUESO::BasicPdfsGsl:
Inheritance graph
[legend]
Collaboration diagram for QUESO::BasicPdfsGsl:
Collaboration graph
[legend]

Public Member Functions

Constructor/Destructor methods
 BasicPdfsGsl ()
 Default constructor. More...
 
 BasicPdfsGsl (int worldRank)
 Constructor. More...
 
 ~BasicPdfsGsl ()
 Destructor. More...
 
Mathematical methods
double betaPdfActualValue (double x, double alpha, double beta) const
 TODO: Actual value of the Beta PDF. More...
 
double gammaPdfActualValue (double x, double a, double b) const
 TODO: Actual value of the Gamma PDF. More...
 
- Public Member Functions inherited from QUESO::BasicPdfsBase
 BasicPdfsBase ()
 Default constructor. More...
 
 BasicPdfsBase (int worldRank)
 Constructor. More...
 
virtual ~BasicPdfsBase ()
 Virtual destructor. More...
 

Additional Inherited Members

- Protected Attributes inherited from QUESO::BasicPdfsBase
int m_worldRank
 

Detailed Description

TODO: Base class for basic PDFs using Gsl library.

Todo:
This class will acommodate the definition of a Joint PDF using distributions available in the Gsl library. It will ultimately be called by BaseJointPdf and/or its derived classes (via m_env.basicPdfs()) during the construction of Joint PDFs.

Definition at line 43 of file BasicPdfsGsl.h.

Constructor & Destructor Documentation

QUESO::BasicPdfsGsl::BasicPdfsGsl ( )

Default constructor.

Definition at line 33 of file BasicPdfsGsl.C.

References QUESO::BasicPdfsBase::m_worldRank, and UQ_FATAL_TEST_MACRO.

34  :
36 {
39  "BasicPdfsGsl::constructor(), default",
40  "should not be used by user");
41 }
BasicPdfsBase()
Default constructor.
Definition: BasicPdfsBase.C:30
#define UQ_FATAL_TEST_MACRO(test, givenRank, where, what)
Definition: Defines.h:223
QUESO::BasicPdfsGsl::BasicPdfsGsl ( int  worldRank)

Constructor.

Constructor ------------------------—.

Definition at line 44 of file BasicPdfsGsl.C.

45  :
46  BasicPdfsBase(worldRank)
47 {
48 }
BasicPdfsBase()
Default constructor.
Definition: BasicPdfsBase.C:30
QUESO::BasicPdfsGsl::~BasicPdfsGsl ( )

Destructor.

Definition at line 51 of file BasicPdfsGsl.C.

52 {
53 }

Member Function Documentation

double QUESO::BasicPdfsGsl::betaPdfActualValue ( double  x,
double  alpha,
double  beta 
) const
virtual

TODO: Actual value of the Beta PDF.

Implements QUESO::BasicPdfsBase.

Definition at line 57 of file BasicPdfsGsl.C.

58 {
59  double result = gsl_ran_beta_pdf(x,alpha,beta);
60  if (isinf(result)) { // CSRI - 2013-aug-06, with Laura
61  std::cerr << "In BasicPdfsGsl::betaPdfActualValue(): hitting inf"
62  << ", x = " << x
63  << ", alpha = " << alpha
64  << ", beta = " << beta
65  << std::endl;
66  //result = gsl_ran_beta_pdf(x,alpha,beta);
67  result = 0.;
68  }
69  return result;
70 }
double QUESO::BasicPdfsGsl::gammaPdfActualValue ( double  x,
double  a,
double  b 
) const
virtual

TODO: Actual value of the Gamma PDF.

Implements QUESO::BasicPdfsBase.

Definition at line 74 of file BasicPdfsGsl.C.

75 {
76  return gsl_ran_gamma_pdf(x,a,b);
77 }

The documentation for this class was generated from the following files:

Generated on Thu Apr 23 2015 19:26:16 for queso-0.51.1 by  doxygen 1.8.5