25package umontreal.ssj.randvar;
27import umontreal.ssj.rng.*;
28import umontreal.ssj.probdist.*;
70 return convolution(stream, k, lambda);
74 return convolution(s, k, lambda);
77 private static double convolution(
RandomStream s,
int k,
double lambda) {
79 for (
int i = 0; i < k; i++)
Extends the class GammaDist for the special case of the Erlang distribution with shape parameter and...
Extends the class ContinuousDistribution for the exponential distribution tjoh95a (page 494) with me...
double inverseF(double u)
Returns the inverse distribution function .
ErlangConvolutionGen(RandomStream s, int k, double lambda)
Creates an Erlang random variate generator with parameters k and.
ErlangConvolutionGen(RandomStream s, int k)
Creates an Erlang random variate generator with parameters k and.
ErlangConvolutionGen(RandomStream s, ErlangDist dist)
Creates a new generator for the distribution dist and stream s.
static double nextDouble(RandomStream s, int k, double lambda)
Generates a new variate from the Erlang distribution with parameters.
double nextDouble()
Generates a random number from the continuous distribution contained in 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.
This interface defines the basic structures to handle multiple streams of uniform (pseudo)random numb...