psimjava
Class Normal

java.lang.Object
  extended by psimjava.Normal

public class Normal
extends java.lang.Object

Normal Distribution random number generator

PsimJ Java package for OO simulation

Object-oriented simulation package, process interaction approach.

(C) J. M. Garrido. June 2000, 2003, 2004, 2007

Random number generator, Normal distribution


Constructor Summary
Normal(double rmean, double rstd)
          Constructor using values of type double
Normal(double rmean, double rstd, int seed)
          Constructor using values of type double
 
Method Summary
 double fdraw()
          This function generates a random number from Normal distribution set up by the constructor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Normal

public Normal(double rmean,
              double rstd,
              int seed)
Constructor using values of type double

Parameters:
rmean - double - Mean of the distribution
rstd - double - Standard Deviation of the distribution
seed - int - seed for the distribution

Normal

public Normal(double rmean,
              double rstd)
Constructor using values of type double

Parameters:
rmean - double - Mean of the distribution
rstd - double - Standard Deviation of the distribution
Method Detail

fdraw

public double fdraw()
This function generates a random number from Normal distribution set up by the constructor

Returns:
double, a pseudo-random number.