|
||||||||||
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.ExtremeValueDistribution
public class ExtremeValueDistribution
This class models the exponential-type extreme value distribution. The version for maximums or the version for minimums can be specified.
Field Summary | |
---|---|
static int |
MAXIMUM
|
static int |
MINIMUM
|
Fields inherited from class edu.uah.math.distributions.Distribution |
---|
CONTINUOUS, DISCRETE, MIXED |
Constructor Summary | |
---|---|
ExtremeValueDistribution()
This default constructor creates a new ExtremeValueDistribution of type MAXIMUM. |
|
ExtremeValueDistribution(int k)
This general constructor creates a new ExtremeValueDistribution of a specified type. |
Method Summary | |
---|---|
double |
getCDF(double x)
This method computes the cumulative distribution function. |
double |
getDensity(double x)
This method computes the denstiy function. |
double |
getMaxDensity()
This method returns the maximum value of the density function. |
double |
getMean()
The method returns the mean of the distribution. |
double |
getOrder()
This method returns the type parameter. |
double |
getQuantile(double p)
This method returns the quantile function |
double |
getVariance()
This method returns the variance of the distribution. |
void |
setOrder(int k)
This method defines the type and the default domian.. |
java.lang.String |
toString()
This method returns a string that gives the name of the distribution and the value of the type parameter. |
Methods inherited from class edu.uah.math.distributions.Distribution |
---|
getDomain, getFailureRate, getMedian, getMGF, getMoment, getMoment, getPGF, getSD, getType, setDomain, setDomain, simulate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MAXIMUM
public static final int MINIMUM
Constructor Detail |
---|
public ExtremeValueDistribution(int k)
k
- the type (maximum or minimum)public ExtremeValueDistribution()
Method Detail |
---|
public void setOrder(int k)
k
- the type parameter (maximum or minimum)public 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 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 number in (0, 1)
public double getOrder()
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 |