public class KunduGupta2007 extends java.lang.Object implements RandomGammaGenerator
| Constructor and Description |
|---|
KunduGupta2007(double k,
double theta,
RandomLongGenerator uniform)
Construct a random number generator to sample from the gamma distribution.
|
| Modifier and Type | Method and Description |
|---|---|
double |
nextDouble()
Get the next random
double. |
void |
seed(long... seeds)
Seed the random number generator to produce repeatable sequences.
|
public KunduGupta2007(double k,
double theta,
RandomLongGenerator uniform)
k - the shape parametertheta - the scale parameteruniform - a uniform random number generatorpublic void seed(long... seeds)
RandomNumberGeneratorseed in interface RandomNumberGeneratorseeds - the seedspublic double nextDouble()
RandomNumberGeneratordouble.nextDouble in interface RandomNumberGenerator