edu.ucla.stat.SOCR.distributions
Class GeometricDistribution

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.NegativeBinomialDistribution
              extended by edu.ucla.stat.SOCR.distributions.GeometricDistribution
All Implemented Interfaces:
IValueSettable, Pluginable, java.util.Observer

public class GeometricDistribution
extends NegativeBinomialDistribution

The geometric distribution with parameter p. http://mathworld.wolfram.com/GeometricDistribution.html .


Field Summary
 
Fields inherited from class edu.ucla.stat.SOCR.core.Distribution
applet, CONTINUOUS, DISCRETE, MAXMGFXVAL, MAXMGFYVAL, MINMGFXVAL, MIXED, name
 
Constructor Summary
GeometricDistribution()
          Default Constructor: creates a new geometric distribution with parameter 0.5
GeometricDistribution(double p)
          General Constructor: creates a new geometric distribution with parameter p
GeometricDistribution(double[] distData)
          Constructor: Creates a new Geometric distribution from a series of observations by parameter estimation.
GeometricDistribution(float[] distData)
          Constructor: Creates a new Geometric distribution from a series of observations by parameter estimation.
 
Method Summary
 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 paramEstimate(double[] distData)
          Overwrites the method in distribution for estimating parameters REF: MOM estimates according to: http://en.wikipedia.org/wiki/Geometric_distribution
 void setParameters(double p)
          Override set parameters
 void valueChanged()
           
 
Methods inherited from class edu.ucla.stat.SOCR.distributions.NegativeBinomialDistribution
getDensity, getMaxDensity, getMean, getMGF, getPGF, getProbability, getSuccesses, getVariance, setParameters, setProbability, setSuccesses, simulate
 
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, getMean, getMedian, getMgfDomain, getName, getPGFDomain, getQuantile, getSampleMoment, getSD, getSOCRDistributionFunctors, getSOCRDistributions, getType, getVariance, inverseCDF, logGamma, perm, sampleMean, sampleVar, setApplet, setDomain, setDomain, setMGFDomain, setMGFDomain, setMGFParameters, setMGFParameters, setMGFParameters, setMGFParameters, setParameters, setPGFDomain, setPGFDomain, setPGFParameters, setPGFParameters, setPGFParameters, setPGFParameters, 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

GeometricDistribution

public GeometricDistribution(double p)
General Constructor: creates a new geometric distribution with parameter p


GeometricDistribution

public GeometricDistribution()
Default Constructor: creates a new geometric distribution with parameter 0.5


GeometricDistribution

public GeometricDistribution(double[] distData)
Constructor: Creates a new Geometric distribution from a series of observations by parameter estimation.


GeometricDistribution

public GeometricDistribution(float[] distData)
Constructor: Creates a new Geometric distribution from a series of observations by parameter estimation.

Method Detail

initialize

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

Overrides:
initialize in class NegativeBinomialDistribution

valueChanged

public void valueChanged()
Overrides:
valueChanged in class NegativeBinomialDistribution

setParameters

public void setParameters(double p)
Override set parameters


paramEstimate

public void paramEstimate(double[] distData)
Overwrites the method in distribution for estimating parameters REF: MOM estimates according to: http://en.wikipedia.org/wiki/Geometric_distribution

Overrides:
paramEstimate in class Distribution

getOnlineDescription

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

Overrides:
getOnlineDescription in class NegativeBinomialDistribution