ns3::RngStream Class Reference
[CoreRandom Variable Distributions]

Combined Multiple-Recursive Generator MRG32k3a. More...

#include <rng-stream.h>

List of all members.

Public Member Functions

 RngStream ()
 RngStream (const RngStream &)
void InitializeStream ()
void ResetStartStream ()
void ResetStartSubstream ()
void ResetNextSubstream ()
void ResetNthSubstream (uint32_t N)
void SetAntithetic (bool a)
void IncreasedPrecis (bool incp)
bool SetSeeds (const uint32_t seed[6])
void AdvanceState (int32_t e, int32_t c)
void GetState (uint32_t seed[6]) const
double RandU01 ()
int32_t RandInt (int32_t i, int32_t j)

Static Public Member Functions

static bool SetPackageSeed (const uint32_t seed[6])
static bool CheckSeed (const uint32_t seed[6])

Private Member Functions

double U01 ()
double U01d ()

Private Attributes

double Cg [6]
double Bg [6]
double Ig [6]
bool anti
bool incPrec

Static Private Attributes

static double nextSeed [6]

Detailed Description

Combined Multiple-Recursive Generator MRG32k3a.

This class is the combined multiple-recursive random number generator called MRG32k3a. The ns3::RandomVariableBase class holds a static instance of this class. The details of this class are explained in: http://www.iro.umontreal.ca/~lecuyer/myftp/papers/streams00.pdf

Definition at line 39 of file rng-stream.h.


Constructor & Destructor Documentation

ns3::RngStream::RngStream (  ) 

Definition at line 312 of file rng-stream.cc.

References anti, and incPrec.

ns3::RngStream::RngStream ( const RngStream r  ) 

Definition at line 319 of file rng-stream.cc.

References anti, Bg, Cg, Ig, and incPrec.


Member Function Documentation

void ns3::RngStream::AdvanceState ( int32_t  e,
int32_t  c 
)
bool ns3::RngStream::CheckSeed ( const uint32_t  seed[6]  )  [static]
void ns3::RngStream::GetState ( uint32_t  seed[6]  )  const

Definition at line 452 of file rng-stream.cc.

References Cg.

Referenced by ns3::RandomVariableBase::GetSeed().

void ns3::RngStream::IncreasedPrecis ( bool  incp  ) 

Definition at line 460 of file rng-stream.cc.

References incPrec.

void ns3::RngStream::InitializeStream (  ) 
int32_t ns3::RngStream::RandInt ( int32_t  i,
int32_t  j 
)

Definition at line 488 of file rng-stream.cc.

References RandU01().

Referenced by ns3::RealRandomStream::GetNext().

double ns3::RngStream::RandU01 (  ) 
void ns3::RngStream::ResetNextSubstream (  ) 
void ns3::RngStream::ResetNthSubstream ( uint32_t  N  ) 
void ns3::RngStream::ResetStartStream (  ) 

Definition at line 353 of file rng-stream.cc.

References Bg, Cg, and Ig.

void ns3::RngStream::ResetStartSubstream (  ) 

Definition at line 363 of file rng-stream.cc.

References Bg, and Cg.

void ns3::RngStream::SetAntithetic ( bool  a  ) 

Definition at line 467 of file rng-stream.cc.

References anti.

bool ns3::RngStream::SetPackageSeed ( const uint32_t  seed[6]  )  [static]

Definition at line 396 of file rng-stream.cc.

References CheckSeed(), and nextSeed.

Referenced by ns3::RandomVariableBase::Initialize().

bool ns3::RngStream::SetSeeds ( const uint32_t  seed[6]  ) 

Definition at line 406 of file rng-stream.cc.

References Bg, Cg, CheckSeed(), and Ig.

double ns3::RngStream::U01 (  )  [private]
double ns3::RngStream::U01d (  )  [private]

Definition at line 240 of file rng-stream.cc.

References anti, anonymous_namespace{rng-stream.cc}::fact, and U01().

Referenced by RandU01().


Member Data Documentation

bool ns3::RngStream::anti [private]

Definition at line 60 of file rng-stream.h.

Referenced by RngStream(), SetAntithetic(), U01(), and U01d().

double ns3::RngStream::Bg[6] [private]
double ns3::RngStream::Cg[6] [private]
double ns3::RngStream::Ig[6] [private]

Definition at line 59 of file rng-stream.h.

Referenced by InitializeStream(), ResetStartStream(), RngStream(), and SetSeeds().

bool ns3::RngStream::incPrec [private]

Definition at line 60 of file rng-stream.h.

Referenced by IncreasedPrecis(), RandU01(), and RngStream().

double ns3::RngStream::nextSeed [static, private]
Initial value:
{
   12345.0, 12345.0, 12345.0, 12345.0, 12345.0, 12345.0
}

Definition at line 64 of file rng-stream.h.

Referenced by InitializeStream(), and SetPackageSeed().


The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:10:34 2009 for NS-3 by  doxygen 1.6.3