public final class Uniform extends Object implements Distribution
| Constructor and Description |
|---|
Uniform(double a,
double b) |
| Modifier and Type | Method and Description |
|---|---|
double |
quantile(double prob)
Compute the value of the quantile function at the given probability.
|
double |
rand()
Generate a random value from the distribution.
|
String |
toString() |
public double rand()
Distributionrand in interface Distributionpublic double quantile(double prob)
Distributionquantile in interface Distributionprob - the probability that the random variable X ≤ q, where q is the quantile value.