public class OrderStatisticDistribution extends Distribution implements java.io.Serializable
CONTINUOUS, DISCRETE, MIXED
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getDomain, getFailureRate, getMaxDensity, getMean, getMedian, getMGF, getMoment, getMoment, getPGF, getQuantile, getSD, getType, getVariance, setDomain, setDomain, simulate
public OrderStatisticDistribution(Distribution d, int n, int k)
d
- the probability distributionn
- the sample sizek
- the orderpublic OrderStatisticDistribution()
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 distributionpublic double getCDF(double x)
getCDF
in class Distribution
x
- a number in the domain of xpublic 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