|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.doodleproject.numerics4j.random.AbstractDiscreteRandomVariable net.sf.doodleproject.numerics4j.random.GeometricRandomVariable
public class GeometricRandomVariable
A random variable generator for the Geometric distribution.
References:
Constructor Summary | |
---|---|
GeometricRandomVariable()
Default constructor. |
|
GeometricRandomVariable(double p)
Create a random variable with the given probability of success. |
|
GeometricRandomVariable(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(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 GeometricRandomVariable()
public GeometricRandomVariable(double p)
p
- the probability of success.public GeometricRandomVariable(double p, RNG source)
p
- the probability of success.source
- the source generator.Method Detail |
---|
public static int nextRandomVariable(double p, RNG source)
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 |