public class Poisson2Variate extends PoissonVariate
Modifier and Type | Field and Description |
---|---|
private double |
alpha |
private double |
beta |
private double |
c |
private double |
k |
a, mean, normalVariate, useNormalApproximation
rng
Constructor and Description |
---|
Poisson2Variate() |
Modifier and Type | Method and Description |
---|---|
int |
generateInt() |
void |
setMean(double mean) |
generate, getMean, getParameters, setParameters, toString
getRandomNumber, setRandomNumber
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRandomNumber, setRandomNumber
private double alpha
private double beta
private double k
private double c
public int generateInt()
generateInt
in interface DiscreteRandomVariate
generateInt
in class PoissonVariate
int
.public void setMean(double mean)
setMean
in class PoissonVariate
mean
- the desired mean.