|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uah.math.distributions.Distribution
edu.uah.math.distributions.LogisticDistribution
public class LogisticDistribution
This class models the logistic distribution.
| Field Summary |
|---|
| Fields inherited from class edu.uah.math.distributions.Distribution |
|---|
CONTINUOUS, DISCRETE, MIXED |
| Constructor Summary | |
|---|---|
LogisticDistribution()
This default constructor creates a new logsitic distribution and sets up the default computational domain (−7, 7). |
|
| Method Summary | |
|---|---|
double |
getCDF(double x)
This method computes the cumulative distribution function, which is F(x) = ex / (1 + ex) |
double |
getDensity(double x)
This method computes the probability density function,which is f(x) = ex / (1 + ex)2 |
double |
getMaxDensity()
This method computes the maximum value of the density function, which is 1/4, the value of the density at x = 0. |
double |
getMean()
This method returns the mean of the distribution, which is 0. |
double |
getMGF(double t)
This method computes the moment generating function, which is Γ(1 + t) / Γ(1 − t). |
double |
getQuantile(double p)
This method comptues the quantile function. |
double |
getVariance()
This method computes the variance of the distribution, which is π2 / 3. |
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, 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 LogisticDistribution()
| Method Detail |
|---|
public double getDensity(double x)
getDensity in class Distributionx - a real number
public double getMaxDensity()
getMaxDensity in class Distributionpublic double getCDF(double x)
getCDF in class Distributionx - a real number
public double getQuantile(double p)
getQuantile in class Distributionp - a probability in (0, 1)
public double getMean()
getMean in class Distributionpublic double getVariance()
getVariance in class Distributionpublic double getMGF(double t)
getMGF in class Distributiont - a number < 1
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 | |||||||||