public class NegativeBinomialRandomVariable extends AbstractDiscreteRandomVariable
A random variable generator for the Negative Binomial distribution.
References:
| Constructor and Description |
|---|
NegativeBinomialRandomVariable()
Default constructor.
|
NegativeBinomialRandomVariable(int r,
double p)
Create a random variable with the given number of successes and
probability of success.
|
NegativeBinomialRandomVariable(int r,
double p,
RNG source)
Create a random variable with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
nextRandomVariable()
Access the next random variable from this generator.
|
static int |
nextRandomVariable(int r,
double p,
RNG source)
Access the next random variable using the given generator.
|
public NegativeBinomialRandomVariable()
public NegativeBinomialRandomVariable(int r,
double p)
r - the number of successes.p - the probability of success.public NegativeBinomialRandomVariable(int r,
double p,
RNG source)
r - the number of successes.p - the probability of success.source - the source generator.public static int nextRandomVariable(int r,
double p,
RNG source)
r - the number of successes.p - the probability of success.source - the source generator.public int nextRandomVariable()
DMelt 2.0 © DataMelt by jWork.ORG