|
SSJ V. 2.6. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectumontreal.iro.lecuyer.randvar.RandomVariateGen
umontreal.iro.lecuyer.randvar.InverseGaussianGen
public class InverseGaussianGen
This class implements random variate generators for the inverse Gaussian distribution with location parameter μ > 0 and scale parameter λ > 0. The density function of this distribution is
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class umontreal.iro.lecuyer.randvar.RandomVariateGen |
|---|
getDistribution, getStream, nextArrayOfDouble, nextDouble, setStream, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InverseGaussianGen(RandomStream s,
double mu,
double lambda)
public InverseGaussianGen(RandomStream s,
InverseGaussianDist dist)
| Method Detail |
|---|
public static double nextDouble(RandomStream s,
double mu,
double lambda)
public double getMu()
public double getLambda()
|
SSJ V. 2.6. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||