public class UniformRandomVariable extends AbstractContinuousRandomVariable
A random variable generator for the Uniform distribution.
References:
| Constructor and Description |
|---|
UniformRandomVariable()
Default constructor.
|
UniformRandomVariable(double a,
double b)
Create a random variable with the given lower bound and upper bound values.
|
UniformRandomVariable(double a,
double b,
RNG rng)
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 UniformRandomVariable()
public UniformRandomVariable(double a,
double b)
a - the lower bound parameter.b - the upper bound parameter.public UniformRandomVariable(double a,
double b,
RNG rng)
a - the lower bound parameter.b - the upper bound parameter.rng - the source generator.public static double nextRandomVariable(double a,
double b,
RNG source)
a - the lower bound parameter.b - the upper bound parameter.source - the source generator.public double nextRandomVariable()
DMelt 2.0 © DataMelt by jWork.ORG