haifa.shopsim.lab
Class ParetoRandomTimeMaker

java.lang.Object
  |
  +--haifa.shopsim.lab.AbstractRandomTimeMaker
        |
        +--haifa.shopsim.lab.ParetoRandomTimeMaker
All Implemented Interfaces:
RandomTimeMaker
Direct Known Subclasses:
Pareto2MomentsRandomTimeMaker, Pareto3MomentsRandomTimeMaker

public class ParetoRandomTimeMaker
extends AbstractRandomTimeMaker

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.

Version:
0.60

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

Field Detail

alpha

protected double alpha

negAlphaInv

private final double negAlphaInv
The negative inverse of alpha
Constructor Detail

ParetoRandomTimeMaker

public ParetoRandomTimeMaker(double alpha_)
Contstructs based on alpha parameter.
Method Detail

getTime

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