edu.ucla.stat.SOCR.distributions
Class HyperbolicSecantDistribution

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

public class HyperbolicSecantDistribution
extends Distribution

This class encapsulates the Hyperbolic-Secant distribution -- no parameters. http://en.wikipedia.org/wiki/Hyperbolic_secant_distribution.


Field Summary
static double C
           
 
Fields inherited from class edu.ucla.stat.SOCR.core.Distribution
applet, CONTINUOUS, DISCRETE, MAXMGFXVAL, MAXMGFYVAL, MINMGFXVAL, MIXED, name
 
Constructor Summary
HyperbolicSecantDistribution()
          This general constructor creates a new HyperbolicSecant distribution with specified parameter values
 
Method Summary
 double getCDF(double x)
          This method computes the cumulative distribution function
 double getDensity(double x)
          This method defines the getDensity function http://en.wikipedia.org/wiki/Hyperbolic_secant_distribution
 double getMaxDensity()
          This method returns the maximum value of the getDensity function
 double getMean()
          These methods return the mean
 double getMedian()
          This method returns the median
 double getMGF(double t)
          Computes the moment generating function in closed form for a parameter t which lies in the domain of the distribution.
 java.lang.String getOnlineDescription()
          This method returns an online description of this distribution.
 double getVariance()
          These methods return the variance
 double secant(double t)
          Computes the secant function http://en.wikipedia.org/wiki/Trigonometric_function
 double sech(double x)
          This method defines the hyperbolic-secant function http://en.wikipedia.org/wiki/Hyperbolic_function
 
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, getMgfDomain, getName, 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
 

Field Detail

C

public static final double C
See Also:
Constant Field Values
Constructor Detail

HyperbolicSecantDistribution

public HyperbolicSecantDistribution()
This general constructor creates a new HyperbolicSecant distribution with specified parameter values

Method Detail

getDensity

public double getDensity(double x)
This method defines the getDensity function http://en.wikipedia.org/wiki/Hyperbolic_secant_distribution

Specified by:
getDensity in class Distribution

sech

public double sech(double x)
This method defines the hyperbolic-secant function http://en.wikipedia.org/wiki/Hyperbolic_function


getMaxDensity

public double getMaxDensity()
This method returns the maximum value of the getDensity function

Overrides:
getMaxDensity in class Distribution

getMedian

public double getMedian()
This method returns the median

Overrides:
getMedian 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

getCDF

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

Overrides:
getCDF in class Distribution

getMGF

public double getMGF(double t)
Computes the moment generating function in closed form for a parameter t which lies in the domain of the distribution.

Overrides:
getMGF in class Distribution

secant

public double secant(double t)
Computes the secant function http://en.wikipedia.org/wiki/Trigonometric_function


getOnlineDescription

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

Overrides:
getOnlineDescription in class Distribution