|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--haifa.shopsim.lab.AbstractRandomTimeMaker | +--haifa.shopsim.lab.ParetoRandomTimeMaker
Allows generation of heavy-tail R.V's. That is R.V's that do not have exponetial moments. The paretto distribution is used. The classes uses a pareto with paremeters alpha and mean which sets the lamda . With survival function (lamda/(lamda+x))^alpha.
Field Summary | |
protected double |
alpha
|
private double |
negAlphaInv
The negative inverse of alpha |
Fields inherited from class haifa.shopsim.lab.AbstractRandomTimeMaker |
lastSeed, random |
Constructor Summary | |
ParetoRandomTimeMaker(double alpha_)
Contstructs based on alpha parameter. |
Method Summary | |
double |
getTime(double mean)
Returns a random pareto variable with mean. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected double alpha
private final double negAlphaInv
Constructor Detail |
public ParetoRandomTimeMaker(double alpha_)
Method Detail |
public double getTime(double mean)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |