A.I.M.S algorithms


ExponentialDeviates< T > Class Template Reference

Exponential random numbers. More...

#include <aims/math/random.h>

Public Member Functions

 ExponentialDeviates ()
 Constructor and destructor. More...
 
virtual ~ExponentialDeviates ()
 destructor More...
 
Uniform random numbers

Nombres aleatoires sous forme de classe. F. Poupon le 03/08/2000

doit (int *idum=NULL)
 Exponential random number generator. More...
 

Detailed Description

template<class T>
class ExponentialDeviates< T >

Exponential random numbers.

Definition at line 409 of file random.h.

Constructor & Destructor Documentation

template<class T >
ExponentialDeviates< T >::ExponentialDeviates ( )
inline

Constructor and destructor.

constructor

Definition at line 416 of file random.h.

template<class T >
virtual ExponentialDeviates< T >::~ExponentialDeviates ( )
inlinevirtual

destructor

Definition at line 418 of file random.h.

Member Function Documentation

template<class T >
T ExponentialDeviates< T >::doit ( int *  idum = NULL)
inline

Exponential random number generator.

\ This function is adapted from the Numerical Recipes in C. \ Returns an exponentially distributed, positive, random deviate of unit mean, using method ran1(idum) of UniformDeviates as the source of uniform deviates.

Definition at line 432 of file random.h.

References UniformDeviates< T >::ran1().


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