25package umontreal.ssj.randvar;
27import umontreal.ssj.rng.*;
28import umontreal.ssj.probdist.*;
96 throw new IllegalArgumentException(
"lambda <= 0");
98 throw new IllegalArgumentException(
"k <= 0");
Extends the class GammaDist for the special case of the Erlang distribution with shape parameter and...
static double inverseF(int k, double lambda, int d, double u)
Returns the inverse distribution function.
ErlangGen(RandomStream s, int k)
Creates an Erlang random variate generator with parameters k and.
ErlangGen(RandomStream s, ErlangDist dist)
Creates a new generator for the distribution dist and stream s.
int getK()
Returns the parameter of this object.
void setParams(int k, double lambda)
Sets the parameter and of this object.
ErlangGen(RandomStream s, int k, double lambda)
Creates an Erlang random variate generator with parameters k and.
static double nextDouble(RandomStream s, int k, double lambda)
Generates a new variate from the Erlang distribution with parameters.
GammaGen(RandomStream s, double alpha, double lambda)
Creates a gamma random variate generator with parameters.
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,...