edu.ucla.stat.SOCR.distributions
Class MinimaxDistribution

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

public class MinimaxDistribution
extends Distribution

A Java implmentation of the Minimax distribution with specified left(alpha) and right(Minimax) parameters http://mathworld.wolfram.com/topics/ContinuousDistributions.html .


Field Summary
 
Fields inherited from class edu.ucla.stat.SOCR.core.Distribution
applet, CONTINUOUS, DISCRETE, MAXMGFXVAL, MAXMGFYVAL, MINMGFXVAL, MIXED, name
 
Constructor Summary
MinimaxDistribution()
          Default constructor: creates a Minimax distribution with left and right parameters equal to 1
MinimaxDistribution(double b, double g)
           
 
Method Summary
 double getBeta()
          Get the left paramter
 double getDensity(double x)
          Define the Minimax getDensity function
 double getGamma()
          Get the right parameter
 java.lang.String getOnlineDescription()
          This method returns an online description of this distribution.
 void initialize()
          used for some subclass to initialize before being used
 void setBeta(double b)
          Sets the left parameter
 void setGamma(double g)
          Sets the right parameter
 void setParameters(double b, double g)
          Set the parameters, compute the normalizing constant c, and specifies the interval and partition
 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, getMean, getMedian, 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
 

Constructor Detail

MinimaxDistribution

public MinimaxDistribution()
Default constructor: creates a Minimax distribution with left and right parameters equal to 1


MinimaxDistribution

public MinimaxDistribution(double b,
                           double g)
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(double b,
                          double g)
Set the parameters, compute the normalizing constant c, and specifies the interval and partition


setBeta

public void setBeta(double b)
Sets the left parameter


setGamma

public void setGamma(double g)
Sets the right parameter


getBeta

public double getBeta()
Get the left paramter


getGamma

public double getGamma()
Get the right parameter


getDensity

public double getDensity(double x)
Define the Minimax getDensity function

Specified by:
getDensity in class Distribution

getOnlineDescription

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

Overrides:
getOnlineDescription in class Distribution