|
||||||||||
| 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.WeibullDistribution
public class WeibullDistribution
This class models the Weibull distribution with specified shape and scale parameters.
| Field Summary |
|---|
| Fields inherited from class edu.uah.math.distributions.Distribution |
|---|
CONTINUOUS, DISCRETE, MIXED |
| Constructor Summary | |
|---|---|
WeibullDistribution()
This default constructor creates a new Weibull distribution with shape parameter 1 and scale parameter 1. |
|
WeibullDistribution(double k,
double b)
This general constructor creates a new Weibull distribution with spcified shape and scale parameters. |
|
| Method Summary | |
|---|---|
double |
getCDF(double x)
This method computes the cumulative distribution function. |
double |
getDensity(double x)
This method computes the denstiy function. |
double |
getFailureRate(double x)
This method computes the failure rate function. |
double |
getMaxDensity()
This method returns the maximum value of the density function. |
double |
getMean()
The method returns the mean of the distribution. |
double |
getMoment(double a,
int n)
This method returns the moment of a specified order about a specified point. |
double |
getMoment(int n)
This method returns the moment of a specified order. |
double |
getQuantile(double p)
This method returns the quantile function |
double |
getScale()
This method returns the scale parameter. |
double |
getShape()
This method returns the shape parameter. |
double |
getVariance()
This method returns the variance of the distribution. |
void |
setParameters(double k,
double b)
This method sets the shape and scale parameter. |
void |
setScale(double b)
This method sets the scale parameter. |
void |
setShape(double k)
This method sets the shape parameter. |
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, getMedian, getMGF, 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 WeibullDistribution(double k,
double b)
k - the shape parameterb - the scale parameterpublic WeibullDistribution()
| Method Detail |
|---|
public void setParameters(double k,
double b)
k - the shape parameterb - the scale parameterpublic double getDensity(double x)
getDensity in class Distributionx - a number in the domain of the distribution
public double getMaxDensity()
getMaxDensity in class Distributionpublic double getMean()
getMean in class Distributionpublic double getVariance()
getVariance 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 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 double getFailureRate(double x)
getFailureRate in class Distributionx - a number in the domain of the distribution
public double getShape()
public void setShape(double k)
k - the shape parameterpublic double getScale()
public void setScale(double b)
b - the scale parameterpublic java.lang.String toString()
toString in class Distribution
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||