|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectVariate
Weibull
public class Weibull
A random number generator based on the Weibull distribution.
NOTE: This class is taken from
JSim.
Moreover, the Sim_poisson_obj.sample()
method always return NaN value.
| Constructor Summary | |
|---|---|
Weibull(double scale,
double shape,
int i)
Constructs a Weibull random variate. |
|
| Method Summary | |
|---|---|
double |
gen()
Generates a random number from Weibull distribution. |
Double[] |
getParameters()
Get the parameters of the constuctor |
| Methods inherited from class Variate |
|---|
incStream |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Weibull(double scale,
double shape,
int i)
scale - scale parametershape - shape parameteri - random number stream| Method Detail |
|---|
public Double[] getParameters()
getParameters in class Variatepublic double gen()
gen in class Variate
|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||