|
|||||||||
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.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 java.lang.Object |
---|
equals, 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 | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |