public class NegBinDistribution extends DiscreteDistribution
Modifier and Type | Field and Description |
---|---|
double |
negBin_p |
double |
negBin_r |
rng
Constructor and Description |
---|
NegBinDistribution(double mean,
double variance) |
NegBinDistribution(double mean,
double variance,
RandomNumberGenerator rng) |
Modifier and Type | Method and Description |
---|---|
int |
next()
Create random numbers
|
double |
nextBetaRandomNumber(double _a,
double _b) |
double |
nextGammaRandomNumber(double alpha,
double beta) |
getDefaultRNG, getRandomNumberGenerator, reset
public NegBinDistribution(double mean, double variance, RandomNumberGenerator rng)
public NegBinDistribution(double mean, double variance)
public double nextBetaRandomNumber(double _a, double _b)
public double nextGammaRandomNumber(double alpha, double beta)
public int next()
DiscreteDistribution
next
in class DiscreteDistribution