public class UniformContinuousDistribution extends BoundedContinuousDistribution
lowerBound, upperBound
name
Constructor and Description |
---|
UniformContinuousDistribution(java.lang.String name,
double lowerBound,
double upperBound)
Uniform continuous distribution that draws each value in [lowerBound, upperBound] with equal probability.
|
Modifier and Type | Method and Description |
---|---|
double |
drawValue() |
draw, getLowerBound, getUpperBound, isLowerBoundSet, isUpperBoundSet
getName, toString
public UniformContinuousDistribution(java.lang.String name, double lowerBound, double upperBound) throws java.lang.IllegalArgumentException
name
- Name of the distribution (will be prefixed by UniformContinuousDistribution_)lowerBound
- lower bound of the interval the values are drawn fromupperBound
- upper bound of the interval drawn fromjava.lang.IllegalArgumentException
- An error will be created when the bounds are inconsistent (i.e. upperBound < lowerBound)public double drawValue()
drawValue
in class BoundedContinuousDistribution