WebCab Probability and Statistics for COM v3.3 Demo | |
HyperGeometricProbabilityDistribution.Probability Method
Calculates the probability of obtaining numberOfSuccesses
successes and n-numberOfSuccesses
failures where n
is the total sample size.
public
double Probability(
int numberOfSuccesses);
Parameters
- numberOfSuccesses
- The number of successes required for which probability is returned.
Exceptions
Exception Type | Condition |
---|
HyperGeometricProbabilityDistributionException | Is thrown if - the number of expected successes is less than zero.
- the number of expected successes is greater that the number if elements in the population labeled success.
- the number of elements in the population labeled success is greater than the number of elements in the population.
- the number of trials is greater than the number of elements in the population.
. |
See Also
HyperGeometricProbabilityDistribution Class | WebCab.COM.Statistics.PDistributions Namespace