edu.uah.math.distributions
Class OrderStatisticDistribution

java.lang.Object
  extended by edu.uah.math.distributions.Distribution
      extended by edu.uah.math.distributions.OrderStatisticDistribution
All Implemented Interfaces:
java.io.Serializable

public class OrderStatisticDistribution
extends Distribution
implements java.io.Serializable

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.

Version:
August, 2003
Author:
Kyle Siegrist, Dawn Duehring
See Also:
Serialized Form

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

OrderStatisticDistribution

public 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.

Parameters:
d - the probability distribution
n - the sample size
k - the order

OrderStatisticDistribution

public OrderStatisticDistribution()
This default constructor creates a new order statistic distribution with the uniform distribution, sample size n = 2, and order k = 1.

Method Detail

setParameters

public void setParameters(Distribution d,
                          int n,
                          int k)
This method sets the parameters: the sampling distribution, sample size, and order.

Parameters:
d - the probability distribution
n - the sample size
k - the order

getDensity

public double getDensity(double x)
This method computes the probability density function.

Specified by:
getDensity in class Distribution
Parameters:
x - a number in the domain of the distribution
Returns:
the probability density at x

getCDF

public double getCDF(double x)
This method computes the cumulative distribution function.

Overrides:
getCDF in class Distribution
Parameters:
x - a number in the domain of x
Returns:
the cumulative probability at x

setDistribution

public void setDistribution(Distribution d)
This method sets the sampling distribution.

Parameters:
d - the sampling distribution

getDistribution

public Distribution getDistribution()
This method returns the sampling distribution.

Returns:
the sampling distribution

setSampleSize

public void setSampleSize(int n)
This method sets the sample size.

Parameters:
n - the sample size

getSampleSize

public int getSampleSize()
This method returns the sample size.

Returns:
the sample size

setOrder

public void setOrder(int k)
This method sets the order.

Parameters:
k - the order

getOrder

public int getOrder()
This method returns the order


toString

public java.lang.String toString()
This method returns a string that gives the name of the distribution and the values of the parameters.

Overrides:
toString in class Distribution
Returns:
a string giving the name of the distribution and the values of the parameters