public class FiniteOrderStatisticDistribution extends Distribution implements java.io.Serializable
CONTINUOUS, DISCRETE, MIXED
Constructor and Description |
---|
FiniteOrderStatisticDistribution()
This default constructor creates a new finite order statistic distribution with
population size 50, sample size 10, and order 5.
|
FiniteOrderStatisticDistribution(int N,
int n,
int k)
This general constructor creates a new finite order statistic distribution with
specified population and sample sizes, and specified order.
|
Modifier and Type | Method and Description |
---|---|
double |
getDensity(double x)
This method computes the probability density function.
|
double |
getMean()
This method computes the mean of the distribution.
|
int |
getOrder()
This method returns the order.
|
int |
getPopulationSize()
This method returns the population size.
|
int |
getSampleSize()
This method returns the sample size.
|
double |
getVariance()
This method computes the variance of the distribution.
|
void |
setOrder(int k)
This method sets the order.
|
void |
setParameters(int N,
int n,
int k)
This method sets the parameters: the sample size, population size, and order.
|
void |
setPopulationSize(int N)
This method sets the population size.
|
void |
setSampleSize(int n)
This method sets the sample size.
|
double |
simulate()
This method simulates a value from the distribution.
|
java.lang.String |
toString()
This method returns a string that gives the name of the distribution and the values of
the parameters.
|
getCDF, getDomain, getFailureRate, getMaxDensity, getMedian, getMGF, getMoment, getMoment, getPGF, getQuantile, getSD, getType, setDomain, setDomain
public FiniteOrderStatisticDistribution(int N, int n, int k)
N
- the population sizen
- the sample sizek
- the orderpublic FiniteOrderStatisticDistribution()
public void setParameters(int N, int n, int k)
N
- the population sizen
- the sample sizek
- the orderpublic double getDensity(double x)
getDensity
in class Distribution
x
- a number in the domain of the distributionpublic double getMean()
getMean
in class Distribution
public double getVariance()
getVariance
in class Distribution
public double simulate()
simulate
in class Distribution
public void setPopulationSize(int N)
N
- the population sizepublic int getPopulationSize()
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