|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--eduni.distributions.Generator | +--eduni.distributions.Poisson
A random number generator based on the poisson distribution.
automatically generated by MetaGenerator
Field Summary |
Fields inherited from class eduni.distributions.Generator |
distrib |
Constructor Summary | |
Poisson(double mean)
the seed is aumatically provided by the SeedGenerator |
|
Poisson(double mean,
long seed)
The constructor with which a specific seed is set for the random number generator |
Method Summary | |
long |
sample()
Generate a new random number. |
Methods inherited from class eduni.distributions.Generator |
getSeed, reseed, setSeed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface eduni.distributions.Seedable |
getSeed, reseed, setSeed |
Constructor Detail |
public Poisson(double mean)
SeedGenerator
mean
- must be greater than 0public Poisson(double mean, long seed)
seed
- The initial seed for the generator, two instances with
the same seed will generate the same sequence of numbersmean
- must be greater than 0Method Detail |
public long sample()
sample
in interface DiscreteGenerator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |