queso-0.57.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
QUESO::BasicPdfsBoost Class Reference

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

#include <BasicPdfsBoost.h>

Inheritance diagram for QUESO::BasicPdfsBoost:
QUESO::BasicPdfsBase

Public Member Functions

Constructor/Destructor methods
 BasicPdfsBoost (int worldRank)
 Constructor. More...
 
 ~BasicPdfsBoost ()
 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

 BasicPdfsBoost ()
 Default constructor. More...
 

Additional Inherited Members

- Protected Attributes inherited from QUESO::BasicPdfsBase
int m_worldRank
 

Detailed Description

TODO: Base class for basic PDFs using Boost library.

Todo:
This class will acommodate the definition of a Joint PDF using distributions available in the Boost 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 BasicPdfsBoost.h.

Constructor & Destructor Documentation

QUESO::BasicPdfsBoost::BasicPdfsBoost ( int  worldRank)

Constructor.

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

Definition at line 32 of file BasicPdfsBoost.C.

33  :
34  BasicPdfsBase(worldRank)
35 {
36 }
BasicPdfsBase()
Default constructor.
Definition: BasicPdfsBase.C:29
QUESO::BasicPdfsBoost::~BasicPdfsBoost ( )

Destructor.

Definition at line 39 of file BasicPdfsBoost.C.

40 {
41  //this function does nothing
42 }
QUESO::BasicPdfsBoost::BasicPdfsBoost ( )
private

Default constructor.

Member Function Documentation

double QUESO::BasicPdfsBoost::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 BasicPdfsBoost.C.

47 {
48  boost::math::beta_distribution<> beta_dist(alpha, beta);
49  return boost::math::pdf(beta_dist, x);
50 }
double QUESO::BasicPdfsBoost::gammaPdfActualValue ( double  x,
double  a,
double  b 
) const
virtual

TODO: Actual value of the Gamma PDF.

Implements QUESO::BasicPdfsBase.

Definition at line 54 of file BasicPdfsBoost.C.

55 {
56  boost::math::gamma_distribution<> gamma_dist(a, b);
57  return boost::math::pdf(gamma_dist, x);
58 }

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

Generated on Tue Jun 5 2018 19:49:04 for queso-0.57.1 by  doxygen 1.8.5