edu.ucla.stat.SOCR.distributions
Class FiniteOrderStatisticDistribution

java.lang.Object
  extended by edu.ucla.stat.SOCR.core.SOCRValueSettable
      extended by edu.ucla.stat.SOCR.core.Distribution
          extended by edu.ucla.stat.SOCR.distributions.FiniteOrderStatisticDistribution
All Implemented Interfaces:
IValueSettable, Pluginable, java.util.Observer

public class FiniteOrderStatisticDistribution
extends Distribution

This class models the distribution of the k'th order statistic for a sample of size n chosen without replacement from {1, 2, ..., N} .


Field Summary
 
Fields inherited from class edu.ucla.stat.SOCR.core.Distribution
applet, CONTINUOUS, DISCRETE, MAXMGFXVAL, MAXMGFYVAL, MINMGFXVAL, MIXED, name
 
Constructor Summary
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.
 
Method Summary
 double getDensity(double x)
          This method computes the getDensity.
 double getMean()
          This method computes the mean.
 int getOrder()
          This method returns the order.
 int getPopulationSize()
          This method returns the population size.
 int getSampleSize()
          This method returns the sampleSize.
 double getVariance()
          This method computes the variance.
 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.
 
Methods inherited from class edu.ucla.stat.SOCR.core.Distribution
addObserver, betaCDF, comb, factorial, findGFRoot, findRoot, gamma, gammaCDF, getCDF, getDisplayPane, getDomain, getFailureRate, getGFDerivative, getGFSecondDerivative, getInstance, getLocalHelp, getMaxDensity, getMean, getMedian, getMGF, getMgfDomain, getName, getOnlineDescription, getPGF, getPGFDomain, getQuantile, getSampleMoment, getSD, getSOCRDistributionFunctors, getSOCRDistributions, getType, getVariance, initialize, inverseCDF, logGamma, paramEstimate, perm, sampleMean, sampleVar, setApplet, setDomain, setDomain, setMGFDomain, setMGFDomain, setMGFParameters, setMGFParameters, setMGFParameters, setMGFParameters, setParameters, setPGFDomain, setPGFDomain, setPGFParameters, setPGFParameters, setPGFParameters, setPGFParameters, simulate, update, valueChanged, valueChanged
 
Methods inherited from class edu.ucla.stat.SOCR.core.SOCRValueSettable
createComponentSetter, createValueSetter, createValueSetter, createValueSetter, createValueSetter, getComponentSetter, getComponentSetters, getValueSetter, getValueSetters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FiniteOrderStatisticDistribution

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


FiniteOrderStatisticDistribution

public FiniteOrderStatisticDistribution()
This default constructor creates a new finite order statistic distribution with population size 50, sample size 10, and order 5.

Method Detail

setParameters

public void setParameters(int N,
                          int n,
                          int k)
This method sets the parameters: the sample size, population size, and order.


getDensity

public double getDensity(double x)
This method computes the getDensity.

Specified by:
getDensity in class Distribution

getMean

public double getMean()
This method computes the mean.

Overrides:
getMean in class Distribution

getVariance

public double getVariance()
This method computes the variance.

Overrides:
getVariance in class Distribution

setPopulationSize

public void setPopulationSize(int N)
This method sets the population size.


getPopulationSize

public int getPopulationSize()
This method returns the population size.


setSampleSize

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


getSampleSize

public int getSampleSize()
This method returns the sampleSize.


setOrder

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


getOrder

public int getOrder()
This method returns the order.