jsim.variate
Class HyperExponential

java.lang.Object
  extended by jsim.variate.Variate
      extended by jsim.variate.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.


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.
 java.lang.Double[] getParameters()
          Get the parameters of the constuctor
 
Methods inherited from class jsim.variate.Variate
incStream, printName
 
Methods inherited from class java.lang.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 java.lang.Double[] getParameters()
Get the parameters of the constuctor

Overrides:
getParameters in class Variate

gen

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

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