public class ParetoDistribution extends Distribution implements java.io.Serializable
CONTINUOUS, DISCRETE, MIXED
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public ParetoDistribution(double a)
a
- the parameterpublic ParetoDistribution()
public void setParameter(double a)
a
- the parameterpublic double getParameter()
public double getDensity(double x)
getDensity
in class Distribution
x
- a number in the domain of the distributionpublic double getMaxDensity()
getMaxDensity
in class Distribution
public double getMoment(int n)
getMoment
in class Distribution
n
- the orderpublic double getMoment(double a, int n)
getMoment
in class Distribution
a
- the centern
- the orderpublic double getMGF(double t)
getMGF
in class Distribution
t
- a real numberpublic double getVariance()
getVariance
in class Distribution
public double getCDF(double x)
getCDF
in class Distribution
x
- a number in the domain of the distributionpublic double getQuantile(double p)
getQuantile
in class Distribution
p
- a number in (0, 1)public java.lang.String toString()
toString
in class Distribution