|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.util.Random
psimjava.Normalp
public class Normalp
Normal Distribution random number generator
PsimJ Java package for OO simulationObject-oriented simulation package, process interaction approach.
(C) J. M. Garrido. June 2000, 2003, 2004
Random number generator, Normal distribution
| Constructor Summary | |
|---|---|
Normalp(double rmean,
double rstd)
Constructor using values of type double |
|
Normalp(double rmean,
double rstd,
int seed)
Constructor using values of type double |
|
Normalp(long mean,
long stdev)
Constructor for random number generator object - Normal dist |
|
Normalp(long mean,
long stdev,
int seed)
Constructor for random number generator object - Normal dist |
|
| Method Summary | |
|---|---|
long |
draw()
This function generates a random number of type 'long' from the Normal distribution set up by the constructor |
double |
fdraw()
This function generates a random number from Normal distribution set up by the constructor |
| Methods inherited from class java.util.Random |
|---|
next, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Normalp(long mean,
long stdev,
int seed)
mean - long the mean value for the distributionstdev - long the value of the standard deviationseed - int the value to set the random stream.
public Normalp(long mean,
long stdev)
mean - long the mean value for the distributionstdev - long the value of the standard deviation
public Normalp(double rmean,
double rstd,
int seed)
rmean - double - Mean of the distributionrstd - double - Standard Deviation of the distributionseed - int - seed for the distribution
public Normalp(double rmean,
double rstd)
rmean - double - Mean of the distributionrstd - double - Standard Deviation of the distribution| Method Detail |
|---|
public long draw()
draw in interface RandomGeneratorpublic double fdraw()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||