public class InverseGaussianGen extends RandomVariateGen
| Constructor and Description |
|---|
InverseGaussianGen(RandomStream s,
double mu,
double lambda)
Creates an inverse Gaussian random variate generator
with parameters μ = mu and λ = lambda,
using stream s.
|
InverseGaussianGen(RandomStream s,
InverseGaussianDist dist)
Creates a new generator for the distribution dist,
using stream s.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getLambda()
Returns the parameter λ of this object.
|
double |
getMu()
Returns the parameter μ of this object.
|
static double |
nextDouble(RandomStream s,
double mu,
double lambda)
Generates a variate from the inverse gaussian distribution
with location parameter μ > 0 and scale parameter
λ > 0.
|
getDistribution, getStream, nextArrayOfDouble, nextDouble, setStreampublic InverseGaussianGen(RandomStream s, double mu, double lambda)
public InverseGaussianGen(RandomStream s, InverseGaussianDist dist)
public static double nextDouble(RandomStream s, double mu, double lambda)
public double getMu()
public double getLambda()
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.