NSRandom::TRandomExponential Class Reference

This class provides generator for random numbers with exponential distribution. More...

#include <Random.h>

Inheritance diagram for NSRandom::TRandomExponential:

Inheritance graph
[legend]
Collaboration diagram for NSRandom::TRandomExponential:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TRandomExponential (void)
 Constructor.
 TRandomExponential (const DWORD &seed)
 Constructor with seed parameter, which allow start generator at specified number.
float Random (const float &middle)
 Generate random number in range <0,infinity) with exponential distribution.

Detailed Description

This class provides generator for random numbers with exponential distribution.

Definition at line 79 of file Random.h.


Constructor & Destructor Documentation

TRandomExponential::TRandomExponential void   ) 
 

Constructor.

Definition at line 141 of file Random.cpp.

TRandomExponential::TRandomExponential const DWORD seed  ) 
 

Constructor with seed parameter, which allow start generator at specified number.

Parameters:
seed [in] starting value

Definition at line 151 of file Random.cpp.


Member Function Documentation

float TRandomExponential::Random const float &  middle  ) 
 

Generate random number in range <0,infinity) with exponential distribution.

Parameters:
middle [in] middle value of exponential distribution

Definition at line 160 of file Random.cpp.

References NSMath::NSStdMath::log(), and NSRandom::TRandom::Random().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Wed Nov 28 23:09:11 2007 for Joy4D by  doxygen 1.4.6-NO