lux::RandomGenerator Class Reference

#include <randomgen.h>

Collaboration diagram for lux::RandomGenerator:
[legend]

List of all members.

Public Member Functions

 RandomGenerator ()
 ~RandomGenerator ()
void init (unsigned long tn)
unsigned long uintValue ()
float floatValue ()

Private Member Functions

unsigned long LCG (const unsigned long n)
void taus113_set (unsigned long s)
unsigned long nobuf_generateUInt ()

Private Attributes

unsigned long z1
unsigned long z2
unsigned long z3
unsigned long z4
unsigned long * buf
int bufid

Detailed Description

Definition at line 50 of file randomgen.h.


Constructor & Destructor Documentation

lux::RandomGenerator::RandomGenerator (  )  [inline]

Definition at line 53 of file randomgen.h.

References buf, bufid, and RAN_BUFFER_AMOUNT.

lux::RandomGenerator::~RandomGenerator (  )  [inline]

Definition at line 58 of file randomgen.h.

References buf, and lux::FreeAligned().


Member Function Documentation

float lux::RandomGenerator::floatValue (  )  [inline]
void lux::RandomGenerator::init ( unsigned long  tn  )  [inline]
unsigned long lux::RandomGenerator::LCG ( const unsigned long  n  )  [inline, private]

Definition at line 80 of file randomgen.h.

Referenced by taus113_set().

unsigned long lux::RandomGenerator::nobuf_generateUInt (  )  [inline, private]

Definition at line 105 of file randomgen.h.

References MASK, z1, z2, z3, and z4.

Referenced by taus113_set(), and uintValue().

void lux::RandomGenerator::taus113_set ( unsigned long  s  )  [inline, private]

Definition at line 83 of file randomgen.h.

References LCG(), nobuf_generateUInt(), z1, z2, z3, and z4.

Referenced by init().

unsigned long lux::RandomGenerator::uintValue (  )  [inline]

Member Data Documentation

unsigned long* lux::RandomGenerator::buf [private]

Definition at line 122 of file randomgen.h.

Referenced by RandomGenerator(), uintValue(), and ~RandomGenerator().

Definition at line 123 of file randomgen.h.

Referenced by RandomGenerator(), and uintValue().

unsigned long lux::RandomGenerator::z1 [private]

Definition at line 121 of file randomgen.h.

Referenced by nobuf_generateUInt(), and taus113_set().

unsigned long lux::RandomGenerator::z2 [private]

Definition at line 121 of file randomgen.h.

Referenced by nobuf_generateUInt(), and taus113_set().

unsigned long lux::RandomGenerator::z3 [private]

Definition at line 121 of file randomgen.h.

Referenced by nobuf_generateUInt(), and taus113_set().

unsigned long lux::RandomGenerator::z4 [private]

Definition at line 121 of file randomgen.h.

Referenced by nobuf_generateUInt(), and taus113_set().


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.2-20100208