gslmm::beta Class Reference
[Distributions]

#include <gslmm/random/beta.hh>

Inheritance diagram for gslmm::beta:

Inheritance graph
[legend]
Collaboration diagram for gslmm::beta:

Collaboration graph
[legend]
List of all members.

Detailed Description

$\beta$ distribution interface class.

The $\beta$ PDF is

\[ p(x) dx = {\Gamma(a+b) \over \Gamma(a) \Gamma(b)} x^{a-1} (1-x)^{b-1} dx \]

for $ 0 \leq x \leq 1$.

Examples:

random/distribution-test.cc.


Public Member Functions

 beta (double a, double b, generator &r)
virtual ~beta ()
virtual return_type sample ()
virtual double pdf (const return_type &x)
virtual double lower_cdf (const return_type &x)
virtual double upper_cdf (const return_type &x)

Protected Types

typedef distribution< double > base_type

Protected Attributes

double _a
double _b


Member Typedef Documentation

typedef distribution<double> gslmm::beta::base_type [protected]
 

The base type.


Constructor & Destructor Documentation

gslmm::beta::beta double  a,
double  b,
generator r
[inline]
 

Constructor.

Parameters:
a The parameter $ a$ of the PDF
b The parameter $ b$ of the PDF
r The random number generator

virtual gslmm::beta::~beta  )  [inline, virtual]
 

Destructor.


Member Function Documentation

virtual double gslmm::beta::lower_cdf const return_type x  )  [inline, virtual]
 

See also:
gslmm::distribution<Return,Arg>::lower_cdf

virtual double gslmm::beta::pdf const return_type x  )  [inline, virtual]
 

See also:
gslmm::distribution<Return,Arg>::pdf

virtual return_type gslmm::beta::sample  )  [inline, virtual]
 

Sample the distribution.

Returns:
The sample.

Implements gslmm::distribution< double >.

virtual double gslmm::beta::upper_cdf const return_type x  )  [inline, virtual]
 

See also:
gslmm::distribution<Return,Arg>::upper_cdf


Member Data Documentation

double gslmm::beta::_a [protected]
 

Parameter a of the distribution.

double gslmm::beta::_b [protected]
 

Parameter b of the distribution.


The documentation for this class was generated from the following file:
Top of page Last update Tue May 9 10:11:32 2006
Christian Holm
Created by DoxyGen 1.4.6