Calculates the probability for the complementary set of events.
The probability of the complement of the set of events eventA, that is the probability of an event taking place from the probability space which is not contained within the set of events eventA.
If the probability measure of the set is p = {0.2, 0.3, 0.4, 0.1},
and we consider a (sub)set of events A = {1, 3}, then the events which
form the complimentary set of events is A = {0, 2}, and the probability
of one of these events occurring is 0.2+0.4=0.6.
| Exception Type | Condition |
|---|---|
| IncompatibleEventException | Thrown if any of two events is incorrect. |
| ProbabilityNotSetException | Thrown if the probability measure has not been set using SetProbability. |
Probability Class | DiscreteProbability Namespace | SetProbability | SetProbability