public class Poisson
extends java.lang.Object
| Constructor and Description |
|---|
Poisson(double lambda)
Build a Poisson random numbers with a given lambda
|
Poisson(long seed,
double lambda)
Build a Posson random numbers
|
Poisson(java.util.Random rand,
double lambda)
Build a Posson generator
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
int |
next()
Get next Poisson random number with the lambda given in constructor
|
int |
next(double lambda)
Get next Poisson random number with a new lambda (overwrides the default)
|
public Poisson(java.util.Random rand,
double lambda)
rand - input Random generatorlambda - lambdapublic Poisson(double lambda)
lambda - Lambdapublic Poisson(long seed,
double lambda)
seed - seed to reseed the generatorlambda - lambdapublic int next()
public int next(double lambda)
lambda - new lambdapublic static final void main(java.lang.String[] args)
JHepSim. A part of HSTOOLS. version-1.2