public class ErlangGen extends GammaGen
The (non-static) nextDouble method simply calls inverseF on the distribution.
| Constructor and Description |
|---|
ErlangGen(RandomStream s,
ErlangDist dist)
Creates a new generator for the distribution dist
and stream s.
|
ErlangGen(RandomStream s,
int k)
Creates an Erlang random variate generator with parameters
k and
λ = 1, using stream s.
|
ErlangGen(RandomStream s,
int k,
double lambda)
Creates an Erlang random variate generator with parameters
k and λ = lambda,
using stream s.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getK()
Returns the parameter k of this object.
|
static double |
nextDouble(RandomStream s,
int k,
double lambda)
Generates a new variate from the Erlang distribution with
parameters k = k and λ = lambda,
using stream s.
|
getAlpha, getLambda, nextDoublegetDistribution, getStream, nextArrayOfDouble, nextDouble, setStreampublic ErlangGen(RandomStream s, int k, double lambda)
public ErlangGen(RandomStream s, int k)
public ErlangGen(RandomStream s, ErlangDist dist)
public static double nextDouble(RandomStream s, int k, double lambda)
public int getK()
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.