|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ucla.stat.SOCR.core.SOCRValueSettable edu.ucla.stat.SOCR.core.Distribution edu.ucla.stat.SOCR.distributions.InverseGaussianDistribution
public class InverseGaussianDistribution
This class encapsulates the normal distribution with specified (mean, SD) parameters. http://en.wikipedia.org/wiki/Inverse_Gaussian_distribution .
Field Summary | |
---|---|
static double |
NormConst
|
Fields inherited from class edu.ucla.stat.SOCR.core.Distribution |
---|
applet, CONTINUOUS, DISCRETE, MAXMGFXVAL, MAXMGFYVAL, MINMGFXVAL, MIXED, name |
Constructor Summary | |
---|---|
InverseGaussianDistribution()
Default constructor creates a new Wald distribution with specified parameter values |
|
InverseGaussianDistribution(double[] distData)
|
|
InverseGaussianDistribution(double[] distData,
boolean calledByModeler)
|
|
InverseGaussianDistribution(double m,
double l)
This general constructor creates a new Wald distribution with specified parameter values |
|
InverseGaussianDistribution(double mu,
double sigma,
boolean calledByModeler)
|
|
InverseGaussianDistribution(float[] distData)
|
|
InverseGaussianDistribution(float[] distData,
boolean calledByModeler)
|
Method Summary | |
---|---|
double |
getCDF(double x)
This method computes the cumulative distribution function -- This is known in closed-form http://en.wikipedia.org/wiki/Inverse_Gaussian_distribution |
double |
getDensity(double x)
This method defines the getDensity function |
double |
getLambda()
This method gets the scale parameter |
double |
getMean()
These methods return the mean |
double |
getMu()
This method returns the location parameter |
java.lang.String |
getOnlineDescription()
This method returns an online description of this distribution. |
double |
getVariance()
These methods return the variance |
void |
initialize()
used for some subclass to initialize before being used |
double |
inverseCDF(double probability)
Inverse of the cumulative InverseGaussian distribution function. |
void |
paramEstimate(double[] distData)
|
void |
setLambda(double l)
This method sets the shape parameter |
void |
setMu(double m)
This method sets the location parameter |
void |
setParameters(double m,
double l)
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, getDisplayPane, getDomain, getFailureRate, getGFDerivative, getGFSecondDerivative, getInstance, getLocalHelp, getMaxDensity, getMean, getMedian, getMGF, getMgfDomain, getName, getPGF, getPGFDomain, getQuantile, getSampleMoment, getSD, getSOCRDistributionFunctors, getSOCRDistributions, getType, getVariance, logGamma, 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 |
---|
public static final double NormConst
Constructor Detail |
---|
public InverseGaussianDistribution()
public InverseGaussianDistribution(double m, double l)
public InverseGaussianDistribution(double[] distData)
public InverseGaussianDistribution(float[] distData)
public InverseGaussianDistribution(double mu, double sigma, boolean calledByModeler)
public InverseGaussianDistribution(double[] distData, boolean calledByModeler)
public InverseGaussianDistribution(float[] distData, boolean calledByModeler)
Method Detail |
---|
public void initialize()
Distribution
initialize
in class Distribution
public void valueChanged()
valueChanged
in class Distribution
public void paramEstimate(double[] distData)
paramEstimate
in class Distribution
public void setParameters(double m, double l)
public double getDensity(double x)
getDensity
in class Distribution
public double getMean()
getMean
in class Distribution
public double getVariance()
getVariance
in class Distribution
public double getMu()
public void setMu(double m)
public double getLambda()
public void setLambda(double l)
public double getCDF(double x)
getCDF
in class Distribution
public double inverseCDF(double probability)
inverseCDF
in class Distribution
probability
- - a probability value in [0, 1]
public java.lang.String getOnlineDescription()
getOnlineDescription
in class Distribution
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |