|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doodleproject.numerics4j.random.AbstractDiscreteRandomVariable
net.sf.doodleproject.numerics4j.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 net.sf.doodleproject.numerics4j.random.AbstractDiscreteRandomVariable |
|---|
getSource, nextRandomNumber |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, 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 | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||