25package umontreal.ssj.randvar;
27import umontreal.ssj.rng.*;
28import umontreal.ssj.probdist.*;
44 protected double mu = -1.0;
45 protected double lambda = -1.0;
62 setParams(dist.getMu(), dist.getLambda());
90 protected void setParams(
double mu,
double lambda) {
92 throw new IllegalArgumentException(
"lambda <= 0");
94 throw new IllegalArgumentException(
"mu <= 0");
Extends the class ContinuousDistribution for the inverse Gaussian distribution with location paramete...
double inverseF(double u)
Returns the inverse distribution function .
double getLambda()
Returns the parameter of this object.
void setParams(double mu, double lambda)
Sets the parameters and of this object.
InverseGaussianGen(RandomStream s, double mu, double lambda)
Creates an inverse Gaussian random variate generator with parameters mu and lambda,...
InverseGaussianGen(RandomStream s, InverseGaussianDist dist)
Creates a new generator for the distribution dist, using stream s.
static double nextDouble(RandomStream s, double mu, double lambda)
Generates a variate from the inverse gaussian distribution with location parameter and scale paramet...
double getMu()
Returns the parameter of this object.
This interface defines the basic structures to handle multiple streams of uniform (pseudo)random numb...
double nextDouble()
Returns a (pseudo)random number from the uniform distribution over the interval , using this stream,...