public class GammaRandomVariable extends AbstractContinuousRandomVariable
A random variable generator for the Gamma distribution.
References:
Constructor and Description |
---|
GammaRandomVariable()
Default constructor.
|
GammaRandomVariable(double a,
double b)
Create a random variable with the given alpha and beta values.
|
GammaRandomVariable(double a,
double b,
RNG source)
Create a random variable with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
double |
nextRandomVariable()
Access the next random variable from this generator.
|
static double |
nextRandomVariable(double a,
double b,
RNG source)
Access the next random variable using the given generator.
|
public GammaRandomVariable()
public GammaRandomVariable(double a, double b)
a
- the alpha parameter.b
- the beta parameter.public GammaRandomVariable(double a, double b, RNG source)
a
- the alpha parameter.b
- the beta parameter.source
- the source generatorpublic static double nextRandomVariable(double a, double b, RNG source)
a
- the alpha parameter.b
- the beta parameter.source
- the source generatorpublic double nextRandomVariable()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics