|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjhplot.math.Poisson
public class Poisson
Build a Poisson distribution
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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) |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Poisson(Random rand,
double lambda)
rand - input Random generatorlambda - lambdapublic Poisson(double lambda)
lambda - Lambda
public Poisson(long seed,
double lambda)
seed - seed to reseed the generatorlambda - lambda| Method Detail |
|---|
public int next()
public int next(double lambda)
lambda - new lambda
public static final void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||