|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.util.Random
psimjava.Poissonp
public class Poissonp
| Constructor Summary | |
|---|---|
Poissonp(double prate,
double pperiod)
|
|
Poissonp(double prate,
double pperiod,
long seed)
Constructor to initialize a random number generator using a Poisson distribution. |
|
| Method Summary | |
|---|---|
long |
draw()
This function generates a random number using a Poisson distribution. |
| 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 Poissonp(double prate,
double pperiod,
long seed)
prate, - the rate of arrival (arrivals per unit time).pperiod, - period considered for arrivals.seed, - the seed for selecting an appropriate random stream.
public Poissonp(double prate,
double pperiod)
| Method Detail |
|---|
public long draw()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||