|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The Binomial Distribution.
Instances of BinomialDistribution objects should be created using
DistributionFactory.createBinomialDistribution(int, double).
References:
| Method Summary | |
int |
getNumberOfTrials()
Access the number of trials for this distribution. |
double |
getProbabilityOfSuccess()
Access the probability of success for this distribution. |
void |
setNumberOfTrials(int trials)
Change the number of trials for this distribution. |
void |
setProbabilityOfSuccess(double p)
Change the probability of success for this distribution. |
| Methods inherited from interface org.apache.commons.math.distribution.IntegerDistribution |
cumulativeProbability, cumulativeProbability, inverseCumulativeProbability, probability |
| Methods inherited from interface org.apache.commons.math.distribution.DiscreteDistribution |
probability |
| Methods inherited from interface org.apache.commons.math.distribution.Distribution |
cumulativeProbability, cumulativeProbability |
| Method Detail |
public int getNumberOfTrials()
public double getProbabilityOfSuccess()
public void setNumberOfTrials(int trials)
trials - the new number of trials.public void setProbabilityOfSuccess(double p)
p - the new probability of success.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||