public class KunduGupta2007 extends Object implements RandomGammaGenerator
Constructor and Description |
---|
KunduGupta2007(double k,
double theta)
Construct a random number generator to sample from the gamma distribution.
|
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/vector/scenario generator to produce repeatable experiments.
|
public KunduGupta2007(double k, double theta, RandomLongGenerator uniform)
k
- the shape parametertheta
- the scale parameteruniform
- a uniform random number generatorpublic KunduGupta2007(double k, double theta)
k
- the shape parametertheta
- the scale parameterpublic void seed(long... seeds)
Seedable
public double nextDouble()
RandomNumberGenerator
double
.nextDouble
in interface RandomNumberGenerator
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.