GridSim 5.0 beta

gridsim.util
Class HyperExponential

Object
  extended by Variate
      extended by HyperExponential

public class HyperExponential
extends Variate

Generate a hyperexponentially distributed random number mean mu and standard deviation sigma (sigma > mu) using Morse's two-stage hyperexponential distribution.
NOTE: This class is taken from JSim.

Since:
GridSim Toolkit 4.1

Constructor Summary
HyperExponential(double mu, double sigma, int i)
          Constructs a Hyper-Geometric random variable.
 
Method Summary
 double gen()
          Generate a hyperexponentially distirbuted random number.
 Double[] getParameters()
          Get the parameters of the constructor
 
Methods inherited from class Variate
incStream
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HyperExponential

public HyperExponential(double mu,
                        double sigma,
                        int i)
Constructs a Hyper-Geometric random variable.

Parameters:
mu - mean
sigma - standard deviation
i - stream
Method Detail

getParameters

public Double[] getParameters()
Get the parameters of the constructor

Overrides:
getParameters in class Variate
Returns:
the parameters

gen

public double gen()
Generate a hyperexponentially distirbuted random number.

Overrides:
gen in class Variate
Returns:
double random number from HyperExponential distribution

GridSim 5.0 beta

The University of Melbourne, Australia, 2009