public class PoissonGenerator extends java.lang.Object implements RandomDataGenerator<java.lang.Object>
param: mean mean for the Poisson distribution.
| Constructor and Description |
|---|
PoissonGenerator(double mean) |
| Modifier and Type | Method and Description |
|---|---|
PoissonGenerator |
copy()
Returns a copy of the RandomDataGenerator with a new instance of the rng object used in the
class when applicable for non-locking concurrent usage.
|
double |
mean() |
double |
nextValue()
Returns an i.i.d.
|
void |
setSeed(long seed)
Set random seed.
|
public double mean()
public double nextValue()
RandomDataGeneratornextValue in interface RandomDataGenerator<java.lang.Object>public void setSeed(long seed)
PseudorandomsetSeed in interface Pseudorandompublic PoissonGenerator copy()
RandomDataGeneratorcopy in interface RandomDataGenerator<java.lang.Object>