|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umontreal.iro.lecuyer.randvar.RandomVariateGen umontreal.iro.lecuyer.randvar.HypoExponentialGen
public class HypoExponentialGen
This class implements random variate generators for the
hypoexponential distribution (see classes
HypoExponentialDist
and
HypoExponentialDistQuick
in package probdist for the definition).
Constructor Summary | |
---|---|
HypoExponentialGen(RandomStream stream,
double[] lambda)
Creates a hypoexponential random variate generator with rates λi = lambda[i - 1], i = 1,…, k, using stream stream. |
|
HypoExponentialGen(RandomStream stream,
HypoExponentialDist dist)
Creates a new generator for the hypoexponential distribution dist with stream stream. |
Method Summary | |
---|---|
double[] |
getLambda()
Returns the λi associated with this object. |
static double |
nextDouble(RandomStream stream,
double[] lambda)
Uses inversion to generate a new hypoexponential variate with rates λi = lambda[i - 1], i = 1,…, k, using stream stream. |
void |
setLambda(double[] lambda)
Sets the rates λi = lam[i - 1], i = 1,…, k of this object. |
Methods inherited from class umontreal.iro.lecuyer.randvar.RandomVariateGen |
---|
getDistribution, getStream, nextArrayOfDouble, nextDouble, setStream, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HypoExponentialGen(RandomStream stream, double[] lambda)
public HypoExponentialGen(RandomStream stream, HypoExponentialDist dist)
Method Detail |
---|
public static double nextDouble(RandomStream stream, double[] lambda)
public double[] getLambda()
public void setLambda(double[] lambda)
|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |