gslmm::pareto Class Reference
[Distributions]

#include <gslmm/random/pareto.hh>

Inheritance diagram for gslmm::pareto:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Pareto distribution interface class.

The Pareto PDF is

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

for $ x \geq b$

Examples:

random/distribution-test.cc.


Public Member Functions

 pareto (double a, double b, generator &r)
virtual ~pareto ()
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)
virtual return_type lower_invcdf (double p)
virtual return_type upper_invcdf (double q)

Protected Types

typedef distribution< double > base_type

Protected Attributes

double _a
double _b


Member Typedef Documentation

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

The base type.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
a 
b 
r The random number generator

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

Destructor.


Member Function Documentation

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

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

virtual return_type gslmm::pareto::lower_invcdf double  p  )  [inline, virtual]
 

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

Reimplemented from gslmm::distribution< double >.

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

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

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

Sample the distribution.

Returns:
The sample.

Implements gslmm::distribution< double >.

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

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

virtual return_type gslmm::pareto::upper_invcdf double  q  )  [inline, virtual]
 

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

Reimplemented from gslmm::distribution< double >.


Member Data Documentation

double gslmm::pareto::_a [protected]
 

Parameter a of the distribution.

double gslmm::pareto::_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:33 2006
Christian Holm
Created by DoxyGen 1.4.6