public class Weibull_64Variate extends RandomVariateBase
Uses simkit.util.Math64.log() function for replicability on 64-bit platforms.
| Modifier and Type | Field and Description |
|---|---|
private double |
alpha |
private double |
alphaInverse |
private double |
beta |
rng| Constructor and Description |
|---|
Weibull_64Variate()
Constructs a new WeibullVariate.
|
| Modifier and Type | Method and Description |
|---|---|
double |
generate()
Generate a random variate having this class's distribution.
|
double |
getAlpha() |
double |
getBeta() |
java.lang.Object[] |
getParameters()
Returns a 2 element array containing alpha and beta as Numbers.
|
void |
setAlpha(double alpha)
Also sets alphaInverse to 1/alpha
|
void |
setBeta(double b) |
void |
setParameters(java.lang.Object... params)
Sets the values of α and β.
|
java.lang.String |
toString()
Returns a String containing the name of this Distribution and the values of
alpha and beta.
|
getRandomNumber, setRandomNumberprivate double alpha
private double alphaInverse
private double beta
public Weibull_64Variate()
public double generate()
RandomVariatepublic void setParameters(java.lang.Object... params)
params - A two element array containing the values of alpha and beta as Numbers.java.lang.IllegalArgumentException - If the array does not contain exactly 2 elements,
if either element is not a Number, or if either element is not positive.public java.lang.Object[] getParameters()
public double getAlpha()
public double getBeta()
public void setAlpha(double alpha)
alpha - the value of alpha.java.lang.IllegalArgumentException - If alpha ≤ 0.0.public void setBeta(double b)
b - the value of beta.java.lang.IllegalArgumentException - If beta ≤ 0.0.public java.lang.String toString()
toString in class java.lang.Object