public class BetaBinomialDistribution extends Distribution
applet, CONTINUOUS, DISCRETE, MAXMGFXVAL, MAXMGFYVAL, MINMGFXVAL, MIXED, name
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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() |
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
createComponentSetter, createValueSetter, createValueSetter, createValueSetter, createValueSetter, getComponentSetter, getComponentSetters, getValueSetter, getValueSetters
public BetaBinomialDistribution()
public BetaBinomialDistribution(int n, double a, double b)
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