public class ExponentialRandomVariable extends AbstractContinuousRandomVariable
A random variable generator for the Exponential distribution.
References:
Constructor and Description |
---|
ExponentialRandomVariable()
Default constructor.
|
ExponentialRandomVariable(double m)
Create a random variable with the given mean.
|
ExponentialRandomVariable(double m,
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 m,
RNG source)
Access the next random variable using the given generator.
|
public ExponentialRandomVariable()
public ExponentialRandomVariable(double m)
m
- the mean.public ExponentialRandomVariable(double m, RNG source)
m
- the mean.source
- the source generator.public static double nextRandomVariable(double m, RNG source)
m
- the mean.source
- the source generator.public double nextRandomVariable()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics