public class GammaRejectionLoglogisticGen extends GammaGen
| Constructor and Description |
|---|
GammaRejectionLoglogisticGen(RandomStream s,
double alpha,
double lambda)
Creates a gamma random variate generator with parameters α =
alpha and λ = lambda, using stream s.
|
GammaRejectionLoglogisticGen(RandomStream s,
GammaDist dist)
Creates a new generator object for the gamma
distribution dist and stream s for both the main and
auxiliary stream.
|
GammaRejectionLoglogisticGen(RandomStream s,
RandomStream aux,
double alpha,
double lambda)
Creates a gamma random variate generator with parameters α =
alpha and λ = lambda, using main stream s and
auxiliary stream aux.
|
GammaRejectionLoglogisticGen(RandomStream s,
RandomStream aux,
GammaDist dist)
Creates a new generator object for the gamma
distribution dist, using main stream s and
auxiliary stream aux.
|
| Modifier and Type | Method and Description |
|---|---|
RandomStream |
getAuxStream()
Returns the auxiliary stream associated with this object.
|
double |
nextDouble()
Generates a random number from the continuous distribution
contained in this object.
|
static double |
nextDouble(RandomStream s,
double alpha,
double lambda)
Same as
nextDouble (s, s, alpha, lambda). |
static double |
nextDouble(RandomStream s,
RandomStream aux,
double alpha,
double lambda)
Generates a new gamma variate with parameters
α = alpha and λ = lambda, using
main stream s and auxiliary stream aux.
|
getDistribution, getStream, nextArrayOfDouble, setStreampublic GammaRejectionLoglogisticGen(RandomStream s, RandomStream aux, double alpha, double lambda)
public GammaRejectionLoglogisticGen(RandomStream s, double alpha, double lambda)
public GammaRejectionLoglogisticGen(RandomStream s, RandomStream aux, GammaDist dist)
public GammaRejectionLoglogisticGen(RandomStream s, GammaDist dist)
public RandomStream getAuxStream()
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, RandomStream aux, double alpha, double lambda)
public static double nextDouble(RandomStream s, double alpha, double lambda)
nextDouble (s, s, alpha, lambda).To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.