public class GeometricRandomVariable extends AbstractDiscreteRandomVariable
A random variable generator for the Geometric distribution.
References:
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.public static int nextRandomVariable(double p,
RNG source)
p - the probability of success.source - the source generator.public int nextRandomVariable()
DMelt 2.0 © DataMelt by jWork.ORG