|
||||||||||
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.BetaBinomialDistribution
public class BetaBinomialDistribution
The binomial distribution with specified parameters: the number of trials (n) and the probability of success (p) http://mathworld.wolfram.com/BetaBinomialDistribution.html .
Field Summary |
---|
Fields inherited from class edu.ucla.stat.SOCR.core.Distribution |
---|
applet, CONTINUOUS, DISCRETE, MAXMGFXVAL, MAXMGFYVAL, MINMGFXVAL, MIXED, name |
Constructor Summary | |
---|---|
BetaBinomialDistribution()
Default constructor: creates the Beta-Binomial distribution with 10 trials, a=1, b=2 |
|
BetaBinomialDistribution(int n,
double a,
double b)
General constructor: creates the beta-binomial distribution with specified parameters |
Method Summary | |
---|---|
double |
getAlpha()
Get alpha parameter |
double |
getBeta()
Get beta parameter |
double |
getDensity(double x)
Define the Beta-Binomial getDensity function |
double |
getMean()
Give the mean in closed form |
java.lang.String |
getOnlineDescription()
This method returns an online description of this distribution. |
double |
getSD()
Specify the SD in close form |
int |
getTrials()
Get the number of trials |
double |
getVariance()
Specify the variance in close form |
void |
initialize()
used for some subclass to initialize before being used |
void |
setAlpha(double a)
Set alpha parameter |
void |
setBeta(double b)
Set beta parameter |
void |
setParameters(int n,
double a,
double b)
Set the parameters |
void |
setTrials(int n)
Set the number of trails |
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, getMGF, 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 |
---|
public BetaBinomialDistribution()
public BetaBinomialDistribution(int n, double a, double b)
Method Detail |
---|
public void initialize()
Distribution
initialize
in class Distribution
public void valueChanged()
valueChanged
in class Distribution
public void setParameters(int n, double a, double b)
public void setTrials(int n)
public int getTrials()
public void setAlpha(double a)
public double getAlpha()
public void setBeta(double b)
public double getBeta()
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 getSD()
getSD
in class Distribution
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 |