public class Uniform extends ContinuousDistribution
The Uniform distribution (1).
References:
| Constructor and Description |
|---|
Uniform()
Default constructor.
|
Uniform(double a,
double b)
Create a distribution with the given lower bound and upper bound values.
|
| Modifier and Type | Method and Description |
|---|---|
double |
cumulativeProbability(double x)
The CDF for this distribution.
|
double |
getLower()
Access the lower parameter.
|
double |
getUpper()
Access the upper parameter.
|
double |
inverseCumulativeProbability(double p)
The inverse CDF for this distribution.
|
void |
setLower(double low)
Modify the lower bound parameter.
|
void |
setUpper(double up)
Modify the upper bound parameter.
|
public Uniform()
public Uniform(double a,
double b)
a - the lower bound parameter.b - the upper bound parameter.public double cumulativeProbability(double x)
cumulativeProbability in class ContinuousDistributionx - the value at which the CDF is evaluated.public double getLower()
public double getUpper()
public double inverseCumulativeProbability(double p)
inverseCumulativeProbability in class ContinuousDistributionp - the cumulative probability.public void setLower(double low)
low - the new lower bound value.public void setUpper(double up)
up - the new upper bound value.DMelt 2.0 © DataMelt by jWork.ORG