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

RazorBack::Randomnorm_ Class Reference

Randomnorm_: random number generator class that produces normally distributed random numbers. More...

#include <Random.hh>

Inheritance diagram for RazorBack::Randomnorm_:

Inheritance graph
[legend]
Collaboration diagram for RazorBack::Randomnorm_:

Collaboration graph
[legend]
List of all members.

Public Methods

 Randomnorm_ (int S1=0, int S2=0)
 Init with the seeds S1, S2. More...

double operator() (void) const
 operator(): returns a random double value with zero mean and unit variance (std normal distribution).

double rnd_msd (double M, double S) const
 rnd_msd(M, S): returns a random value from a normal distribution with mean M and standard deviation S. More...


Detailed Description

Randomnorm_: random number generator class that produces normally distributed random numbers.

Definition at line 95 of file Random.hh.


Constructor & Destructor Documentation

RazorBack::Randomnorm_::Randomnorm_ ( int S1 = 0,
int S2 = 0 ) [inline, explicit]
 

Init with the seeds S1, S2.

If S1==0 (default), then getpid() is used as seed. If S2==0 (default), then time(NULL) is used as seed.

Definition at line 105 of file Random.hh.


Member Function Documentation

double RazorBack::Randomnorm_::operator() ( void ) const [virtual]
 

operator(): returns a random double value with zero mean and unit variance (std normal distribution).

Reimplemented from RazorBack::Randombase_.

Referenced by rnd_msd().

double RazorBack::Randomnorm_::rnd_msd ( double M,
double S ) const [inline]
 

rnd_msd(M, S): returns a random value from a normal distribution with mean M and standard deviation S.

No checks.

Definition at line 118 of file Random.hh.


The documentation for this class was generated from the following file:
Generated at Wed Aug 21 09:33:18 2002 for The Razorback C++ Library: Statistics by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001