g4tools  5.4.0
Public Member Functions | Static Protected Member Functions | List of all members
tools::rtausmed Class Reference
Inheritance diagram for tools::rtausmed:
Inheritance graph
[legend]
Collaboration diagram for tools::rtausmed:
Collaboration graph
[legend]

Public Member Functions

 rtausmed (unsigned int a_seed=4357)
 
virtual ~rtausmed ()
 
 rtausmed (const rtausmed &a_from)
 
rtausmedoperator= (const rtausmed &a_from)
 
double shoot ()
 
- Public Member Functions inherited from tools::rtausmeui
 rtausmeui (unsigned int a_seed=1)
 
virtual ~rtausmeui ()
 
 rtausmeui (const rtausmeui &a_from)
 
rtausmeuioperator= (const rtausmeui &a_from)
 
void set_seed (unsigned int a_seed)
 
unsigned int seed () const
 
unsigned int shoot ()
 

Static Protected Member Functions

static double two_to_minus_32 ()
 
- Static Protected Member Functions inherited from tools::rtausmeui
static unsigned int LCG (unsigned int a_n)
 
static unsigned int TAUSWORTHE (unsigned int a_s, unsigned int a_a, unsigned int a_b, unsigned int a_c, unsigned int a_d)
 

Additional Inherited Members

- Protected Attributes inherited from tools::rtausmeui
unsigned int m_seed
 
unsigned int m_seed1
 
unsigned int m_seed2
 

Detailed Description

Definition at line 18 of file rtausmed.

Constructor & Destructor Documentation

◆ rtausmed() [1/2]

tools::rtausmed::rtausmed ( unsigned int  a_seed = 4357)
inline

Definition at line 23 of file rtausmed.

23 :parent(a_seed){}

◆ ~rtausmed()

virtual tools::rtausmed::~rtausmed ( )
inlinevirtual

Definition at line 24 of file rtausmed.

24 {}

◆ rtausmed() [2/2]

tools::rtausmed::rtausmed ( const rtausmed a_from)
inline

Definition at line 26 of file rtausmed.

26 :parent(a_from){}

Member Function Documentation

◆ operator=()

rtausmed& tools::rtausmed::operator= ( const rtausmed a_from)
inline

Definition at line 27 of file rtausmed.

27 {parent::operator=(a_from);return *this;}

◆ shoot()

double tools::rtausmed::shoot ( )
inline

Definition at line 34 of file rtausmed.

34 {return double(parent::shoot()) * two_to_minus_32();}

◆ two_to_minus_32()

static double tools::rtausmed::two_to_minus_32 ( )
inlinestaticprotected

Definition at line 29 of file rtausmed.

29  {
30  static const double s_v = std::ldexp(1.0,-32);
31  return s_v;
32  }

The documentation for this class was generated from the following file:
tools::rtausmeui::shoot
unsigned int shoot()
Definition: rtausmeui:85
tools::rtausmeui::operator=
rtausmeui & operator=(const rtausmeui &a_from)
Definition: rtausmeui:58
tools::rtausmed::two_to_minus_32
static double two_to_minus_32()
Definition: rtausmed:29