|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umontreal.iro.lecuyer.randvar.RandomVariateGen umontreal.iro.lecuyer.randvar.WeibullGen
public class WeibullGen
This class implements random variate generators for the Weibull distribution. Its density is
The (non-static) nextDouble method simply calls inverseF on the distribution.
Constructor Summary | |
---|---|
WeibullGen(RandomStream s,
double alpha)
Creates a Weibull random variate generator with parameters α = alpha, λ = 1 and δ = 0, using stream s. |
|
WeibullGen(RandomStream s,
double alpha,
double lambda,
double delta)
Creates a Weibull random variate generator with parameters α = alpha, λ = lambda and δ = delta, using stream s. |
|
WeibullGen(RandomStream s,
WeibullDist dist)
Creates a new generator for the Weibull distribution dist and stream s. |
Method Summary | |
---|---|
double |
getAlpha()
Returns the parameter α. |
double |
getDelta()
Returns the parameter δ. |
double |
getLambda()
Returns the parameter λ. |
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, λ = lambda, and δ = delta, using stream s. |
void |
setParams(double alpha,
double lambda,
double delta)
Sets the parameters α, λ and δ for this object. |
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 WeibullGen(RandomStream s, double alpha, double lambda, double delta)
public WeibullGen(RandomStream s, double alpha)
public WeibullGen(RandomStream s, WeibullDist dist)
Method Detail |
---|
public static double nextDouble(RandomStream s, double alpha, double lambda, double delta)
public double getAlpha()
public double getLambda()
public double getDelta()
public void setParams(double alpha, double lambda, double delta)
|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |