queso-0.53.0
Private Member Functions | 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 (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 (int worldRank)
 Constructor. More...
 
virtual ~BasicPdfsBase ()
 Virtual destructor. More...
 

Private Member Functions

 BasicPdfsGsl ()
 Default constructor. 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 ( int  worldRank)

Constructor.

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

Definition at line 33 of file BasicPdfsGsl.C.

34  :
35  BasicPdfsBase(worldRank)
36 {
37 }
BasicPdfsBase()
Default constructor.
Definition: BasicPdfsBase.C:30
QUESO::BasicPdfsGsl::~BasicPdfsGsl ( )

Destructor.

Definition at line 40 of file BasicPdfsGsl.C.

41 {
42 }
QUESO::BasicPdfsGsl::BasicPdfsGsl ( )
private

Default constructor.

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 46 of file BasicPdfsGsl.C.

47 {
48  double result = gsl_ran_beta_pdf(x,alpha,beta);
49  if (isinf(result)) { // CSRI - 2013-aug-06, with Laura
50  std::cerr << "In BasicPdfsGsl::betaPdfActualValue(): hitting inf"
51  << ", x = " << x
52  << ", alpha = " << alpha
53  << ", beta = " << beta
54  << std::endl;
55  //result = gsl_ran_beta_pdf(x,alpha,beta);
56  result = 0.;
57  }
58  return result;
59 }
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 63 of file BasicPdfsGsl.C.

64 {
65  return gsl_ran_gamma_pdf(x,a,b);
66 }

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

Generated on Thu Jun 11 2015 13:52:34 for queso-0.53.0 by  doxygen 1.8.5