|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--laur.rand.RandomPoissonDistribution
A generator of random numbers with Poisson distribution.
| Constructor Summary | |
RandomPoissonDistribution(long mean)
Create a new generator of random numbers with Poisson distribution of specified mean. |
|
RandomPoissonDistribution(long mean,
java.util.Random randgen)
Create a new generator of random numbers with Poisson distribution of specified mean and that uses randgen
as a source of random numbers. |
|
| Method Summary | |
static void |
main(java.lang.String[] args)
sample usage and testing |
long |
nextLong()
Return a random number with Poisson distribution. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RandomPoissonDistribution(long mean)
mean - the mean of the Poisson distribution
public RandomPoissonDistribution(long mean,
java.util.Random randgen)
randgen
as a source of random numbers.mean - the mean of the Poisson distributionrandgen - a Random object to be used by the generator.| Method Detail |
public long nextLong()
public static void main(java.lang.String[] args)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||