|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjhplot.math.num.random.AbstractDiscreteRandomVariable
jhplot.math.num.random.BinomialRandomVariable
public class BinomialRandomVariable
| Constructor Summary | |
|---|---|
BinomialRandomVariable()
Default constructor. |
|
BinomialRandomVariable(int n,
double p)
Create a random variable with the given number of trials and probability of success. |
|
BinomialRandomVariable(int n,
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 n,
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 BinomialRandomVariable()
public BinomialRandomVariable(int n,
double p)
n - the number of trials.p - the probability of success.
public BinomialRandomVariable(int n,
double p,
RNG source)
n - the number of trials.p - the probability of success.source - the source generator.| Method Detail |
|---|
public static int nextRandomVariable(int n,
double p,
RNG source)
n - the number of trials.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 | ||||||||