25package umontreal.ssj.randvar;
27import umontreal.ssj.rng.*;
28import umontreal.ssj.probdist.*;
46 protected double alpha;
47 protected double beta;
56 setParams(alpha, beta);
74 setParams(dist.getAlpha(), dist.getBeta());
99 protected void setParams(
double alpha,
double beta) {
101 throw new IllegalArgumentException(
"alpha <= 0");
103 throw new IllegalArgumentException(
"beta <= 0");
Extends the class ContinuousDistribution for the inverse gamma distribution with shape parameter and...
double inverseF(double u)
Returns the inverse distribution function .
double getAlpha()
Returns the parameter of this object.
InverseGammaGen(RandomStream s, double alpha, double beta)
Creates an inverse gamma random variate generator with parameters.
static double nextDouble(RandomStream s, double alpha, double beta)
Generates a variate from the inverse gamma distribution with shape parameter and scale parameter .
InverseGammaGen(RandomStream s, InverseGammaDist dist)
Creates a new generator for the distribution dist, using stream s.
double getBeta()
Returns the parameter of this object.
InverseGammaGen(RandomStream s, double alpha)
Creates an inverse gamma random variate generator with parameters.
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,...