public class InverseGaussianMSHGen extends InverseGaussianGen
| Constructor and Description |
|---|
InverseGaussianMSHGen(RandomStream s,
NormalGen sn,
double mu,
double lambda)
Creates an inverse gaussian random variate generator with
parameters μ = mu and λ = lambda,
using streams s and sn.
|
InverseGaussianMSHGen(RandomStream s,
NormalGen sn,
InverseGaussianDist dist)
Creates a new generator for the distribution dist
using streams s and sn.
|
| 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,
NormalGen sn,
double mu,
double lambda)
Generates a new variate from the inverse gaussian
distribution with parameters μ = mu and λ =
lambda, using streams s and sn.
|
getLambda, getMu, nextDoublegetDistribution, getStream, nextArrayOfDouble, setStreampublic InverseGaussianMSHGen(RandomStream s, NormalGen sn, double mu, double lambda)
public InverseGaussianMSHGen(RandomStream s, NormalGen sn, InverseGaussianDist dist)
public static double nextDouble(RandomStream s, NormalGen sn, double mu, double lambda)
public double nextDouble()
RandomVariateGeninverseF
method of the distribution object.
Alternative generating methods are provided in subclasses.nextDouble in class RandomVariateGenTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.