psimjava
Class Poissonp

java.lang.Object
  extended by java.util.Random
      extended by psimjava.Poissonp
All Implemented Interfaces:
java.io.Serializable

public class Poissonp
extends java.util.Random

See Also:
Serialized Form

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

Poissonp

public Poissonp(double prate,
                double pperiod,
                long seed)
Constructor to initialize a random number generator using a Poisson distribution.

Parameters:
prate, - the rate of arrival (arrivals per unit time).
pperiod, - period considered for arrivals.
seed, - the seed for selecting an appropriate random stream.

Poissonp

public Poissonp(double prate,
                double pperiod)
Method Detail

draw

public long draw()
This function generates a random number using a Poisson distribution.