|
||||||||||
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.OrderStatisticDistribution
public class OrderStatisticDistribution
This class models the distribution of the order statistic of a specified order from a random sample of a specified size from a specified sampling distribution.
Field Summary |
---|
Fields inherited from class edu.uah.math.distributions.Distribution |
---|
CONTINUOUS, DISCRETE, MIXED |
Constructor Summary | |
---|---|
OrderStatisticDistribution()
This default constructor creates a new order statistic distribution with the uniform distribution, sample size n = 2, and order k = 1. |
|
OrderStatisticDistribution(Distribution d,
int n,
int k)
This general constructor creates a new order statistic distribution corresponding to a specified sampling distribution, sample size, and order. |
Method Summary | |
---|---|
double |
getCDF(double x)
This method computes the cumulative distribution function. |
double |
getDensity(double x)
This method computes the probability density function. |
Distribution |
getDistribution()
This method returns the sampling distribution. |
int |
getOrder()
This method returns the order |
int |
getSampleSize()
This method returns the sample size. |
void |
setDistribution(Distribution d)
This method sets the sampling distribution. |
void |
setOrder(int k)
This method sets the order. |
void |
setParameters(Distribution d,
int n,
int k)
This method sets the parameters: the sampling distribution, sample size, and order. |
void |
setSampleSize(int n)
This method sets the sample size. |
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, getMaxDensity, getMean, getMedian, getMGF, getMoment, getMoment, getPGF, getQuantile, getSD, getType, getVariance, setDomain, setDomain, simulate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OrderStatisticDistribution(Distribution d, int n, int k)
d
- the probability distributionn
- the sample sizek
- the orderpublic OrderStatisticDistribution()
Method Detail |
---|
public void setParameters(Distribution d, int n, int k)
d
- the probability distributionn
- the sample sizek
- the orderpublic double getDensity(double x)
getDensity
in class Distribution
x
- a number in the domain of the distribution
public double getCDF(double x)
getCDF
in class Distribution
x
- a number in the domain of x
public void setDistribution(Distribution d)
d
- the sampling distributionpublic Distribution getDistribution()
public void setSampleSize(int n)
n
- the sample sizepublic int getSampleSize()
public void setOrder(int k)
k
- the orderpublic int 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 |