edu.ucla.stat.SOCR.distributions
Class NonCentralChiSquareDistribution

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

public class NonCentralChiSquareDistribution
extends Distribution

This class encapsulates the Non-Central Chi-Square distribution with specified: k > 0\, degrees of freedom, and \lambda > 0, non-centrality parameters parameters. http://en.wikipedia.org/wiki/Noncentral_chi-square_distribution .


Field Summary
 
Fields inherited from class edu.ucla.stat.SOCR.core.Distribution
applet, CONTINUOUS, DISCRETE, MAXMGFXVAL, MAXMGFYVAL, MINMGFXVAL, MIXED, name
 
Constructor Summary
NonCentralChiSquareDistribution()
          This default constructor creates a new standard normal distribution
NonCentralChiSquareDistribution(int _df, double _lambda)
          This general constructor creates a new normal distribution with specified parameter values
 
Method Summary
 double getDensity(double x)
          This method defines the getDensity function
 double getDF()
          This method gets the DF parameter
 double getLambda()
          This method returns the location parameter
 double getMean()
          These methods return the mean
 double getMGF(double t)
          Computes the moment generating function in closed form for a parameter t < 0.5
 java.lang.String getOnlineDescription()
          This method returns an online description of this distribution.
 double getSD()
          These methods return the variance
 double getVariance()
          These methods return the variance
 void initialize()
          used for some subclass to initialize before being used
 void setDF(int _df)
          This method sets the scale parameter
 void setLambda(double l)
          This method sets the location parameter
 void setParameters(int _df, double _lambda)
          This method sets the parameters
 void valueChanged()
           
 
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, getMgfDomain, getName, getPGF, getPGFDomain, getQuantile, getSampleMoment, getSOCRDistributionFunctors, getSOCRDistributions, getType, 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
 

Constructor Detail

NonCentralChiSquareDistribution

public NonCentralChiSquareDistribution(int _df,
                                       double _lambda)
This general constructor creates a new normal distribution with specified parameter values


NonCentralChiSquareDistribution

public NonCentralChiSquareDistribution()
This default constructor creates a new standard normal distribution

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

setParameters

public void setParameters(int _df,
                          double _lambda)
This method sets the parameters


getDensity

public double getDensity(double x)
This method defines the getDensity function

Specified by:
getDensity in class Distribution

getMean

public double getMean()
These methods return the mean

Overrides:
getMean in class Distribution

getVariance

public double getVariance()
These methods return the variance

Overrides:
getVariance in class Distribution

getSD

public double getSD()
These methods return the variance

Overrides:
getSD in class Distribution

getLambda

public double getLambda()
This method returns the location parameter


setLambda

public void setLambda(double l)
This method sets the location parameter


getDF

public double getDF()
This method gets the DF parameter


setDF

public void setDF(int _df)
This method sets the scale parameter


getMGF

public double getMGF(double t)
Computes the moment generating function in closed form for a parameter t < 0.5

Overrides:
getMGF in class Distribution

getOnlineDescription

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

Overrides:
getOnlineDescription in class Distribution