|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsim.variate.Variate jsim.variate.Uniform
public class Uniform
Uniform random variate generation in which variates are constructed based upon a mean and an interval half width.
Constructor Summary | |
---|---|
Uniform(double mean,
double hwidth,
int i)
Constructs a Unifrom random variate. |
Method Summary | |
---|---|
double |
gen()
Generate a random number from the Uniform 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 Uniform(double mean, double hwidth, int i)
mean
- mean value (alpha parameter)hwidth
- interval half width (beta parameter)i
- 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 |