25package umontreal.ssj.randvar;
27import umontreal.ssj.rng.*;
28import umontreal.ssj.probdist.*;
86 if (p < 0.0 || p > 1.0)
87 throw new IllegalArgumentException(
"p not in range [0, 1]");
Extends the class DiscreteDistributionInt for the geometric distribution slaw00a (page 322) with par...
static int inverseF(double p, double u)
Computes the inverse of the geometric distribution, given by ( FInvgeom ).
GeometricGen(RandomStream s, GeometricDist dist)
Creates a new generator for the distribution dist, using stream s.
GeometricGen(RandomStream s, double p)
Creates a geometric random variate generator with parameter , using stream s.
static int nextInt(RandomStream s, double p)
Generates a geometric random variate with parameter  p, using stream s, by inversion.
double getP()
Returns the parameter of this object.
void setParams(double p)
Sets the parameter and of this object.
int nextInt()
Generates a random number (an integer) from the discrete distribution contained in this object.
This interface defines the basic structures to handle multiple streams of uniform (pseudo)random numb...
double nextDouble()
Returns a (pseudo)random number from the uniform distribution over the interval , using this stream,...