25package umontreal.ssj.randvar;
27import umontreal.ssj.rng.*;
28import umontreal.ssj.probdist.*;
47 private double alpha = -1.0;
48 private double lambda = -1.0;
49 private double delta = -1.0;
69 this(s, alpha, 1.0, 0.0);
78 setParams(dist.getAlpha(), dist.getLambda(), dist.getDelta());
117 public void setParams(
double alpha,
double lambda,
double delta) {
119 throw new IllegalArgumentException(
"alpha <= 0");
121 throw new IllegalArgumentException(
"lambda <= 0");
123 this.lambda = lambda;
This class extends the class ContinuousDistribution for the Weibull distribution tjoh95a (page 628) ...
double inverseF(double u)
Returns the inverse distribution function .
static double nextDouble(RandomStream s, double alpha, double lambda, double delta)
Uses inversion to generate a new variate from the Weibull distribution with parameters  alpha,...
double getLambda()
Returns the parameter .
WeibullGen(RandomStream s, WeibullDist dist)
Creates a new generator for the Weibull distribution dist and stream s.
double getAlpha()
Returns the parameter .
WeibullGen(RandomStream s, double alpha)
Creates a Weibull random variate generator with parameters.
void setParams(double alpha, double lambda, double delta)
Sets the parameters , and for this object.
WeibullGen(RandomStream s, double alpha, double lambda, double delta)
Creates a Weibull random variate generator with parameters.
double getDelta()
Returns the parameter .
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,...