src/core/rng-stream.h
changeset 2797 41489a849fc3
parent 676 0cf407300fa6
child 4221 73b49aa25221
equal deleted inserted replaced
2796:33fb53176f97 2797:41489a849fc3
    20 #ifndef RNGSTREAM_H
    20 #ifndef RNGSTREAM_H
    21 #define RNGSTREAM_H
    21 #define RNGSTREAM_H
    22 #include <string>
    22 #include <string>
    23 #include <stdint.h>
    23 #include <stdint.h>
    24 
    24 
    25 namespace ns3{
    25 namespace ns3 {
    26 
    26 
       
    27 /**
       
    28  * \ingroup core
       
    29  * \ingroup randomvariable 
       
    30  *
       
    31  * \brief Combined Multiple-Recursive Generator MRG32k3a
       
    32  *
       
    33  * This class is the combined multiple-recursive random number
       
    34  * generator called MRG32k3a.  The ns3::RandomVariableBase class
       
    35  * holds a static instance of this class.  The details of this
       
    36  * class are explained in:  
       
    37  * http://www.iro.umontreal.ca/~lecuyer/myftp/papers/streams00.pdf
       
    38  */
    27 class RngStream {
    39 class RngStream {
    28 public:  //public api
    40 public:  //public api
    29   RngStream ();
    41   RngStream ();
    30   RngStream (const RngStream&);
    42   RngStream (const RngStream&);
    31   void InitializeStream(); // Separate initialization
    43   void InitializeStream(); // Separate initialization
    50   double U01d ();
    62   double U01d ();
    51 private: //static data
    63 private: //static data
    52   static double nextSeed[6];
    64   static double nextSeed[6];
    53 };
    65 };
    54 
    66 
    55 };//namespace ns3
    67 } //namespace ns3
    56 
    68 
    57 #endif
    69 #endif
    58  
    70  
    59 
    71