edu.ucla.stat.SOCR.distributions
Class AndersonDarlingDistribution

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.AndersonDarlingDistribution
All Implemented Interfaces:
IValueSettable, Pluginable, java.util.Observer

public class AndersonDarlingDistribution
extends Distribution

This class defines the Anderson-Darling distribution with a specifed parameter n>=1. http://www.jstatsoft.org/v09/i02/ and en.wikipedia.org/wiki/AndersoDarling_test


Field Summary
protected static int n
           
protected static int nMax
           
 
Fields inherited from class edu.ucla.stat.SOCR.core.Distribution
applet, CONTINUOUS, DISCRETE, MAXMGFXVAL, MAXMGFYVAL, MINMGFXVAL, MIXED, name
 
Constructor Summary
AndersonDarlingDistribution()
           
AndersonDarlingDistribution(int n)
          This general constructor creates a new Anderson-Darling distribuiton with a specified parameter number of independent observations (degrees)
 
Method Summary
 double getCDF_n_1(double x)
          Computes the Anderson-Darling CDF (distribution) function for default parameter n==1.
 double getCDF(double x)
          Computes the Anderson-Darling CDF (distribution) function.
static int getDegrees()
          This method returns the degrees parameter
 double getDensity(double x)
          This method computed the Anderson-Darling density function
 double getMaxDensity()
          Maximum value of getDensity function
 double getMedian()
          Maximum value of getDensity function
 java.lang.String getOnlineDescription()
          This method returns an online description of this distribution.
static int getParameters()
          This method returns the degrees parameter
 void initialize()
          used for some subclass to initialize before being used
 void setDegrees(int n)
          This method sets the degrees parameter
 void setParameters(int n)
          This method sets the degrees parameter
protected static double specialCaseDensity_n_1(double x)
          This method gets the special case of the density function for parameter n=1
 void valueChanged()
           
 
Methods inherited from class edu.ucla.stat.SOCR.core.Distribution
addObserver, betaCDF, comb, factorial, findGFRoot, findRoot, gamma, gammaCDF, getDisplayPane, getDomain, getFailureRate, getGFDerivative, getGFSecondDerivative, getInstance, getLocalHelp, getMean, getMean, getMGF, getMgfDomain, getName, getPGF, getPGFDomain, getQuantile, getSampleMoment, getSD, getSOCRDistributionFunctors, getSOCRDistributions, getType, getVariance, getVariance, 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
 
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
 

Field Detail

n

protected static int n

nMax

protected static final int nMax
See Also:
Constant Field Values
Constructor Detail

AndersonDarlingDistribution

public AndersonDarlingDistribution(int n)
This general constructor creates a new Anderson-Darling distribuiton with a specified parameter number of independent observations (degrees)

Parameters:
n - number of independent observations (degrees)

AndersonDarlingDistribution

public AndersonDarlingDistribution()
Method Detail

initialize

public void initialize()
Description copied from class: Distribution
used for some subclass to initialize before being used

Overrides:
initialize in class Distribution

valueChanged

public void valueChanged()
Overrides:
valueChanged in class Distribution

setDegrees

public void setDegrees(int n)
This method sets the degrees parameter

Parameters:
n - number of independent observations (degrees)

setParameters

public void setParameters(int n)
This method sets the degrees parameter

Parameters:
n - number of independent observations (degrees)

getDegrees

public static int getDegrees()
This method returns the degrees parameter


getParameters

public static int getParameters()
This method returns the degrees parameter


specialCaseDensity_n_1

protected static double specialCaseDensity_n_1(double x)
This method gets the special case of the density function for parameter n=1

Parameters:
x - value to assess the density constant at

getDensity

public double getDensity(double x)
This method computed the Anderson-Darling density function

Specified by:
getDensity in class Distribution
Parameters:
x - value to assess the density at

getMaxDensity

public double getMaxDensity()
Maximum value of getDensity function

Overrides:
getMaxDensity in class Distribution

getMedian

public double getMedian()
Maximum value of getDensity function

Overrides:
getMedian in class Distribution

getCDF_n_1

public double getCDF_n_1(double x)
Computes the Anderson-Darling CDF (distribution) function for default parameter n==1. See: http://www.jstatsoft.org/v09/i02/

Parameters:
x - value to assess the CDF at

getCDF

public double getCDF(double x)
Computes the Anderson-Darling CDF (distribution) function. See: http://www.jstatsoft.org/v09/i02/

Overrides:
getCDF in class Distribution
Parameters:
x - value to assess the CDF at

getOnlineDescription

public java.lang.String getOnlineDescription()
This method returns an online description of this distribution.

Overrides:
getOnlineDescription in class Distribution