public class Poisson extends 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(Random rand,
double lambda)
Build a Posson generator
|
Modifier and Type | Method and Description |
---|---|
static void |
main(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(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(String[] args)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics