|
|||||||
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.NormalCV025TimeMaker
A random time maker that makes a normal random variable with specified mean and coeffeicient of variation of 0.25. This means that if the mean is u, the standard deviation is 0.25u. The random variable is guarnteed to be positive. The way this is done is by sampling again when the very unprobable situation occurs that a non-positive r.v. was sampled. Note that this creates a slight error in the distribution.
Fields inherited from class haifa.shopsim.lab.AbstractRandomTimeMaker |
lastSeed, random |
Constructor Summary | |
NormalCV025TimeMaker()
Creates new ExpRandomTimeMaker |
Method Summary | |
double |
getTime(double mean)
Returns a random exponential variable with mean. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public NormalCV025TimeMaker()
Method Detail |
public double getTime(double mean)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |