public class BinomialRandomNDistribution extends Distribution
applet, CONTINUOUS, DISCRETE, MAXMGFXVAL, MAXMGFYVAL, MINMGFXVAL, MIXED, name| Constructor and Description |
|---|
BinomialRandomNDistribution()
This default constructor: creates a new randomized binomial distribution
with probability of success 0.5 and the uniform distribution on {1, 2, 3,
4, 5, 6} for the number of trials
|
BinomialRandomNDistribution(Distribution d,
double p)
This general constructor creates a new randomized binomial distribution
with a specified probability of success and a specified distribution for
the number of trials
|
BinomialRandomNDistribution(double p)
Special constructor: creates a new randomized binomial distribution with
a specified probability of success and the uniform distribution on {1, 2,
3, 4, 5, 6} for the number of trials
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDensity(double x)
The getDensity method is abstract and must be overridden for any specific
distribuiton
|
double |
getMean()
This method returns a default approximate mean, based on the finite set
of domain values.
|
double |
getVariance()
This method returns a default approximate variance.
|
void |
setParameters(Distribution d,
double p)
Set the parameters: the distribution for the number of trials and the
probability of success
|
double |
simulate()
This method computes a default simulation of a value from the
distribution, as a random getQuantile.
|
addObserver, betaCDF, comb, factorial, findGFRoot, findRoot, gamma, gammaCDF, getCDF, getDisplayPane, getDomain, getFailureRate, getGFDerivative, getGFSecondDerivative, getInstance, getLocalHelp, getMaxDensity, getMean, getMedian, getMGF, getMgfDomain, getName, getOnlineDescription, 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, update, valueChanged, valueChangedcreateComponentSetter, createValueSetter, createValueSetter, createValueSetter, createValueSetter, getComponentSetter, getComponentSetters, getValueSetter, getValueSetterspublic BinomialRandomNDistribution(Distribution d, double p)
public BinomialRandomNDistribution(double p)
public BinomialRandomNDistribution()
public void setParameters(Distribution d, double p)
public double getDensity(double x)
DistributiongetDensity in class Distributionpublic double getMean()
DistributiongetMean in class Distributionpublic double getVariance()
DistributiongetVariance in class Distributionpublic double simulate()
Distributionsimulate in class Distribution