public class ErlangConvolutionGen extends ErlangGen
| Constructor and Description |
|---|
ErlangConvolutionGen(RandomStream s,
ErlangDist dist)
Creates a new generator for the distribution dist
and stream s.
|
ErlangConvolutionGen(RandomStream s,
int k)
Creates an Erlang random variate generator with parameters
k and
λ = 1, using stream s.
|
ErlangConvolutionGen(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 |
|---|---|
double |
nextDouble()
Generates a random number from the continuous distribution
contained in this object.
|
static double |
nextDouble(RandomStream s,
int k,
double lambda) |
getAlpha, getLambda, nextDoublegetDistribution, getStream, nextArrayOfDouble, setStreampublic ErlangConvolutionGen(RandomStream s, int k, double lambda)
public ErlangConvolutionGen(RandomStream s, int k)
public ErlangConvolutionGen(RandomStream s, ErlangDist dist)
public double nextDouble()
RandomVariateGeninverseF
method of the distribution object.
Alternative generating methods are provided in subclasses.nextDouble in class RandomVariateGenpublic static double nextDouble(RandomStream s, int k, double lambda)
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.