ParetoRndGen Class Reference
[Random number generators]

Pareto random generator. More...

#include <rndgen.h>

List of all members.

Public Member Functions

 ParetoRndGen (double _location=1, double _shape=1)
double get ()
 returns the random number


Detailed Description

Pareto random generator.

random generation of a double, following a Pareto distribution with PDF and CDF:

\[ p(x) = \frac{shape \, location^{shape}}{x^{shape+1}} \qquad \qquad \qquad P(x) = 1 - \left(\frac{location}{x}\right)^{shape} \]

mean and variance of the Pareto distribution are:

\[ E[x] = \frac{location \, shape}{shape - 1} \qquad \qquad \qquad \sigma^2 = \frac{location^2 \, shape} { (shape -2) (shape - 1)^2 } \]


Constructor & Destructor Documentation

ParetoRndGen::ParetoRndGen double  _location = 1,
double  _shape = 1
[inline]
 

Parameters:
_location  location value of the Pareto distribution
_shape  shape value of the Pareto distribution


The documentation for this class was generated from the following file:
Generated on Wed Dec 22 23:23:49 2004 for NePSing by doxygen 1.3.9.1 ---- Hosted by SourceForge.net Logo