Interface BinomialDistribution
- All Superinterfaces:
DiscreteDistribution
,Distribution
,IntegerDistribution
- All Known Implementing Classes:
BinomialDistributionImpl
The Binomial Distribution.
References:
-
Method Summary
Modifier and TypeMethodDescriptionint
Access the number of trials for this distribution.double
Access the probability of success for this distribution.void
setNumberOfTrials
(int trials) Deprecated.as of v2.1void
setProbabilityOfSuccess
(double p) Deprecated.as of v2.1Methods inherited from interface org.apache.commons.math.distribution.DiscreteDistribution
probability
Methods inherited from interface org.apache.commons.math.distribution.Distribution
cumulativeProbability, cumulativeProbability
Methods inherited from interface org.apache.commons.math.distribution.IntegerDistribution
cumulativeProbability, cumulativeProbability, inverseCumulativeProbability, probability
-
Method Details
-
getNumberOfTrials
int getNumberOfTrials()Access the number of trials for this distribution.- Returns:
- the number of trials.
-
getProbabilityOfSuccess
double getProbabilityOfSuccess()Access the probability of success for this distribution.- Returns:
- the probability of success.
-
setNumberOfTrials
Deprecated.as of v2.1Change the number of trials for this distribution.- Parameters:
trials
- the new number of trials.
-
setProbabilityOfSuccess
Deprecated.as of v2.1Change the probability of success for this distribution.- Parameters:
p
- the new probability of success.
-