haifa.shopsim.lab
Class NormalCV025TimeMaker

java.lang.Object
  |
  +--haifa.shopsim.lab.AbstractRandomTimeMaker
        |
        +--haifa.shopsim.lab.NormalCV025TimeMaker
All Implemented Interfaces:
RandomTimeMaker

public class NormalCV025TimeMaker
extends AbstractRandomTimeMaker

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.

Version:
0.60

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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

NormalCV025TimeMaker

public NormalCV025TimeMaker()
Creates new ExpRandomTimeMaker
Method Detail

getTime

public double getTime(double mean)
Returns a random exponential variable with mean.