|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--edu.uah.math.distributions.Distribution
|
+--edu.uah.math.distributions.ContinuousUniformDistribution
This class models the uniform distribution on a specified interval.
| Field Summary |
| Fields inherited from class edu.uah.math.distributions.Distribution |
CONTINUOUS, DISCRETE, MIXED |
| Constructor Summary | |
ContinuousUniformDistribution()
This default constructor creates a new uniform distribuiton on (0, 1). |
|
ContinuousUniformDistribution(double a,
double b)
This general constructor creates a new uniform distribution on a specified interval. |
|
| Method Summary | |
double |
getCDF(double x)
This method computes the cumulative distribution function. |
double |
getDensity(double x)
This method computes the density function. |
double |
getMaxDensity()
This method computes the maximum value of the getDensity function. |
double |
getMaxValue()
This method returns the maximum value. |
double |
getMean()
This method computes the mean. |
double |
getMinValue()
This method gets the minimum value. |
double |
getQuantile(double p)
This method computes the getQuantile function. |
double |
getVariance()
This method computes the variance. |
void |
setParameters(double a,
double b)
This method sets the parameters: the minimum and maximum values of the interval. |
double |
simulate()
This method simulates a value from the distribution. |
| Methods inherited from class edu.uah.math.distributions.Distribution |
betaCDF, comb, factorial, gamma, gammaCDF, getDomain, getFailureRate, getMedian, getSD, getType, logGamma, perm, setParameters |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ContinuousUniformDistribution(double a,
double b)
public ContinuousUniformDistribution()
| Method Detail |
public void setParameters(double a,
double b)
public double getDensity(double x)
getDensity in class Distributionpublic double getMaxDensity()
getMaxDensity in class Distributionpublic double getMean()
getMean in class Distributionpublic double getVariance()
getVariance in class Distributionpublic double getCDF(double x)
getCDF in class Distributionpublic double getQuantile(double p)
getQuantile in class Distributionpublic double getMinValue()
public double getMaxValue()
public double simulate()
simulate in class Distribution
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||