|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.math.num.random.AbstractDiscreteRandomVariable
jhplot.math.num.random.NegativeBinomialRandomVariable
public class NegativeBinomialRandomVariable
A random variable generator for the Negative Binomial distribution.
References:
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |