|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjsim.variate.Variate
jsim.variate.Erlang
public class Erlang
Erlang random variate generation.
| Constructor Summary | |
|---|---|
Erlang(double mu,
double k,
int i)
Constructs an Erlang random varaiate. |
|
Erlang(double mu,
int k,
int i)
Constructs an Erlang random varaiate. |
|
| Method Summary | |
|---|---|
double |
gen()
Generate a random number from the Erlang distribution. |
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 |
|---|
public Erlang(double mu,
int k,
int i)
mu - mean of exponential samples (Erlang mean = mu * k)k - number of stages (or Exponential samples)i - random nuber stream
public Erlang(double mu,
double k,
int i)
mu - mean of exponential samples (Erlang mean = mu * k)k - number of stages (or Exponential samples)i - random nuber stream| Method Detail |
|---|
public java.lang.Double[] getParameters()
getParameters in class Variatepublic double gen()
gen in class Variate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||