|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.math.num.random.AbstractContinuousRandomVariable
jhplot.math.num.random.UniformRandomVariable
public class UniformRandomVariable
A random variable generator for the Uniform distribution.
References:
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |