25package umontreal.ssj.randvar;
27import umontreal.ssj.rng.*;
28import umontreal.ssj.probdist.*;
69 setParams(dist.getM(), dist.getL(), dist.getK());
108 throw new IllegalArgumentException(
"l must be greater than 0");
110 throw new IllegalArgumentException(
"m is invalid: 1<=m<l");
112 throw new IllegalArgumentException(
"k is invalid: 1<=k<l");
Extends the class DiscreteDistributionInt for the hypergeometric distribution rgen98a (page 101) wit...
static int inverseF(int m, int l, int k, double u)
Computes for the hypergeometric distribution without using precomputed tables.
void setParams(int m, int l, int k)
Sets the parameter and of this object.
int getM()
Returns the associated with this object.
int getK()
Returns the associated with this object.
HypergeometricGen(RandomStream s, HypergeometricDist dist)
Creates a new generator for distribution dist, using stream s.
static int nextInt(RandomStream s, int m, int l, int k)
Generates a new variate from the hypergeometric distribution with parameters  m,  l and  k,...
int getL()
Returns the associated with this object.
HypergeometricGen(RandomStream s, int m, int l, int k)
Creates a hypergeometric generator with parameters  m,  l and  k, using stream s.
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,...