|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsim.variate.Variate jsim.variate.Gamma
public class Gamma
Gamma random variate generation.
Constructor Summary | |
---|---|
Gamma(double beta,
double alpha,
int i)
Constructs a Gamma random variate where mean = alpha * beta and variance = alpha * beta ^ 2. |
Method Summary | |
---|---|
double |
gen()
Generates a random number from the Gamma 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 Gamma(double beta, double alpha, int i)
beta
- scale parameter (is this backwards?)alpha
- shape parameteri
- random number streamMethod Detail |
---|
public java.lang.Double[] getParameters()
getParameters
in class Variate
public double gen()
gen
in class Variate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |