public class MarsagliaTsang2000 extends Object implements RandomGammaGenerator
KunduGupta2007
instead for k < 1.Constructor and Description |
---|
MarsagliaTsang2000()
Construct a random number generator to sample from the standard gamma distribution.
|
MarsagliaTsang2000(double k,
double theta)
Construct a random number generator to sample from the gamma distribution.
|
MarsagliaTsang2000(double k,
double theta,
RandomStandardNormalGenerator normal,
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 MarsagliaTsang2000(double k, double theta, RandomStandardNormalGenerator normal, RandomLongGenerator uniform)
k
- the shape parametertheta
- the scale parameternormal
- a standard normal random number generatoruniform
- a uniform random number generatorpublic MarsagliaTsang2000(double k, double theta)
k
- the shape parametertheta
- the scale parameterpublic MarsagliaTsang2000()
public void seed(long... seeds)
Seedable
public double nextDouble()
RandomNumberGenerator
double
.nextDouble
in interface RandomNumberGenerator
Copyright © 2010-2017 Numerical Method Incorporation Limited. All Rights Reserved.