Interface HypergeometricDistribution
- All Superinterfaces:
DiscreteDistribution,Distribution,IntegerDistribution
- All Known Implementing Classes:
HypergeometricDistributionImpl
The Hypergeometric Distribution.
References:
-
Method Summary
Modifier and TypeMethodDescriptionintAccess the number of successes.intAccess the population size.intAccess the sample size.voidsetNumberOfSuccesses(int num) Deprecated.as of v2.1voidsetPopulationSize(int size) Deprecated.as of v2.1voidsetSampleSize(int size) Deprecated.as of v2.1Methods inherited from interface org.apache.commons.math.distribution.DiscreteDistribution
probabilityMethods inherited from interface org.apache.commons.math.distribution.Distribution
cumulativeProbability, cumulativeProbabilityMethods inherited from interface org.apache.commons.math.distribution.IntegerDistribution
cumulativeProbability, cumulativeProbability, inverseCumulativeProbability, probability
-
Method Details
-
getNumberOfSuccesses
int getNumberOfSuccesses()Access the number of successes.- Returns:
- the number of successes.
-
getPopulationSize
int getPopulationSize()Access the population size.- Returns:
- the population size.
-
getSampleSize
int getSampleSize()Access the sample size.- Returns:
- the sample size.
-
setNumberOfSuccesses
Deprecated.as of v2.1Modify the number of successes.- Parameters:
num- the new number of successes.
-
setPopulationSize
Deprecated.as of v2.1Modify the population size.- Parameters:
size- the new population size.
-
setSampleSize
Deprecated.as of v2.1Modify the sample size.- Parameters:
size- the new sample size.
-