|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--eduni.distributions.Generator
|
+--eduni.distributions.Gamma
A random number generator based on the normal distribution.
| Field Summary |
| Fields inherited from class eduni.distributions.Generator |
distrib |
| Constructor Summary | |
Gamma(double scale,
double shape)
the seed is automatically provided by the SeedGenerator |
|
Gamma(double scale,
double shape,
long seed)
The constructor with which a specific seed is set for the random number generator |
|
| Method Summary | |
double |
sample()
Generate a new random number. |
| Methods inherited from class eduni.distributions.Generator |
getSeed, reseed, setSeed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface eduni.distributions.Seedable |
getSeed, reseed, setSeed |
| Constructor Detail |
public Gamma(double scale,
double shape)
SeedGenerator
scale - The scale of the distribution : scale > 0shape - The shape of the distribution : shape > 0
public Gamma(double scale,
double shape,
long seed)
scale - The scale of the distribution : scale > 0shape - The shape of the distribution : shape > 0seed - The initial seed for the generator, two instances with
the same seed will generate the same sequence of numbers| Method Detail |
public double sample()
sample in interface ContinuousGenerator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||