25package umontreal.ssj.randvar;
27import umontreal.ssj.rng.*;
28import umontreal.ssj.probdist.*;
42 protected double delta = -1.0;
43 protected double alpha = -1.0;
44 protected double beta = -2.0;
45 protected double gamma = -1.0;
64 setParams(dist.getAlpha(), dist.getBeta(), dist.getMu(), dist.getDelta());
107 public void setParams(
double alpha,
double beta,
double mu,
double delta) {
109 throw new IllegalArgumentException(
"delta <= 0");
111 throw new IllegalArgumentException(
"alpha <= 0");
112 if (Math.abs(beta) >= alpha)
113 throw new IllegalArgumentException(
"|beta| >= alpha");
115 gamma = Math.sqrt(alpha * alpha - beta * beta);
Extends the class ContinuousDistribution for the normal inverse gaussian distribution with location p...
static double inverseF(double alpha, double beta, double mu, double delta, double u)
NOT IMPLEMENTED.
void setParams(double alpha, double beta, double mu, double delta)
Sets the parameters , , and.
NormalInverseGaussianGen(RandomStream s, double alpha, double beta, double mu, double delta)
Creates an normal inverse gaussian random variate generator with parameters = alpha,...
static double nextDouble(RandomStream s, double alpha, double beta, double mu, double delta)
NOT IMPLEMENTED.
double getMu()
Returns the parameter of this object.
NormalInverseGaussianGen(RandomStream s, NormalInverseGaussianDist dist)
Creates a new generator for the distribution dist, using stream s.
double getBeta()
Returns the parameter of this object.
double getDelta()
Returns the parameter of this object.
double getAlpha()
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,...