Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

TRNG::YARN5 Class Reference

YARN -- a modified multiple recursive generator. More...

#include <trng.h>

Inheritance diagram for TRNG::YARN5:

TRNG::RNG< YARN5 > List of all members.

Public Methods

 YARN5 (YARN5_param param=YARN5_param_sets::LEcuyer1, long seed_=0l)
 constructor. More...


Detailed Description

This multiple recursive generator uses a linear recurrence of order five with a prime modulus.

Linear structures are destroyed by the nonlinear bijective mapping \f]r_{i} = \begin{cases} b^{q_{i}}\mod m & \text{if }q_{i}\ne 0 \ 0 & \text{if }q_{i} =0 \ \end{cases}\,. \f] The parameter has to be a generating element of the multiplicative group modulo .

Author:
Heiko Bauke

Definition at line 2202 of file trng.h.


Constructor & Destructor Documentation

TRNG::YARN5::YARN5 YARN5_param    param = YARN5_param_sets::LEcuyer1,
long    seed_ = 0l
 

The constructor's default values implement a pseudo random number generator with , , , , and . This generator has a period of . The parameter is chosen to be .

Parameters:
param  parameter set
seed_  default seed


The documentation for this class was generated from the following file:
Generated on Mon Apr 21 16:27:53 2003 for Tina's Random Number Generators by doxygen1.2.15