|
||||||||||
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
public class 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 in terms of the parameters. |
double |
getDensity(double x)
This method computes the probability density function. |
double |
getLowerBound()
This method gets the lower bound of the domain of the distribution. |
double |
getMaxDensity()
This method computes the maximum value of the density function, which is any value, since the density function is constant. |
double |
getMean()
This method computes the mean of the distribution in terms of the parameters. |
double |
getMGF(double t)
This method computes the moment generating function in terms of the parameters. |
double |
getMoment(double a,
int n)
' This method computes the moment of a specified order about a specified point, in terms of the parameters. |
double |
getQuantile(double p)
This method computes the quantile function in terms of the parameters. |
double |
getUpperBound()
This method returns the upper bound of the domain. |
double |
getVariance()
This method computes the variance of the distribution in terms of the parameters. |
void |
setLowerBound(double a)
This method sets the lower bound of the domain. |
void |
setParameters(double a,
double b)
This method sets the parameters: the minimum and maximum values of the interval. |
void |
setUpperBound(double b)
This method sets the upper bound of the domain. |
java.lang.String |
toString()
This method returns a string that gives the name of the distribution and the values of the parameters. |
Methods inherited from class edu.uah.math.distributions.Distribution |
---|
getDomain, getFailureRate, getMedian, getMoment, getPGF, getSD, getType, setDomain, setDomain, simulate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContinuousUniformDistribution(double a, double b)
a
- the left endpointb
- the right endpointpublic ContinuousUniformDistribution()
Method Detail |
---|
public void setParameters(double a, double b)
a
- the left enpdointb
- the right endpointpublic double getDensity(double x)
getDensity
in class Distribution
x
- a number in the domain of the distribution
public double getMaxDensity()
getMaxDensity
in class Distribution
public double getMean()
getMean
in class Distribution
public double getVariance()
getVariance
in class Distribution
public double getMoment(double a, int n)
getMoment
in class Distribution
a
- the centern
- the order
public double getMGF(double t)
getMGF
in class Distribution
t
- a real number
public double getCDF(double x)
getCDF
in class Distribution
x
- a number in the domain of the distribution
public double getQuantile(double p)
getQuantile
in class Distribution
p
- a probability in (0, 1)
public void setLowerBound(double a)
a
- the lower boundpublic double getLowerBound()
public void setUpperBound(double b)
b
- the upper boundpublic double getUpperBound()
public java.lang.String toString()
toString
in class Distribution
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |