|
||||||||||
| 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.ParetoDistribution
public class ParetoDistribution
This class models the Pareto distribution with a specified parameter.
| Field Summary |
|---|
| Fields inherited from class edu.uah.math.distributions.Distribution |
|---|
CONTINUOUS, DISCRETE, MIXED |
| Constructor Summary | |
|---|---|
ParetoDistribution()
The default constructor creates a new Pareto distribution with parameter 1. |
|
ParetoDistribution(double a)
This general constructor creates a new Pareto distribuiton with a specified parameter. |
|
| Method Summary | |
|---|---|
double |
getCDF(double x)
This method comptues the cumulative distribution function. |
double |
getDensity(double x)
This method computes the probability density function. |
double |
getMaxDensity()
This method returns the maximum value of the probability density function. |
double |
getMGF(double t)
This method returns the moment generating function. |
double |
getMoment(double a,
int n)
This method computes the moment of a specified order about a specified point. |
double |
getMoment(int n)
This method computes the moment of a specified order. |
double |
getParameter()
This method returns the parameter. |
double |
getQuantile(double p)
This method computes the quantile function. |
double |
getVariance()
This method computes the variance of the distribution. |
void |
setParameter(double a)
This method sets the parameter and computes the default 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, getMean, getMedian, 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 ParetoDistribution(double a)
a - the parameterpublic ParetoDistribution()
| Method Detail |
|---|
public void setParameter(double a)
a - the parameterpublic double getParameter()
public double getDensity(double x)
getDensity in class Distributionx - a number in the domain of the distribution
public double getMaxDensity()
getMaxDensity in class Distributionpublic double getMoment(int n)
getMoment in class Distributionn - the order
public double getMoment(double a,
int n)
getMoment in class Distributiona - the centern - the order
public double getMGF(double t)
getMGF in class Distributiont - a real number
public double getVariance()
getVariance in class Distributionpublic double getCDF(double x)
getCDF in class Distributionx - a number in the domain of the distribution
public double getQuantile(double p)
getQuantile in class Distributionp - a number in (0, 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 | |||||||||