public interface DoubleSymmetricGenerator extends DoubleRandomGenerator
This interface introduces additional semantics to DoubleRandomGenerator
.
It is intended for random distributions which take two additional parameters, a location and a scale. The statistical interpretation of these parameters is left to implementations.
The nextDouble()
method is now assumed to use some default values for these parameters.
Modifier and Type | Method and Description |
---|---|
double |
nextDouble(double location,
double scale)
Returns a random double value arbitrarily distributed in the range
[lowerDouble(), upperDouble()] , accordingly to the provided parameters. |
lowerDouble, nextDouble, upperDouble
double nextDouble(double location, double scale)
Returns a random double value arbitrarily distributed in the range [lowerDouble(), upperDouble()]
, accordingly to the provided parameters.
location
- The location of the distribution.scale
- The scale of the distribution