|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Random
org.statcato.random.BinomialSample
public class BinomialSample
A random sampler for a binomial distribution defined by the number of trials and event probability.
| Constructor Summary | |
|---|---|
BinomialSample(int trials,
double probability)
Constructor. |
|
| Method Summary | |
|---|---|
int |
nextSample()
Returns the next random sample |
| Methods inherited from class java.util.Random |
|---|
next, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinomialSample(int trials,
double probability)
trials - number of trialsprobability - event probability| Method Detail |
|---|
public int nextSample()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||