Returns the CDF for the binomial distribution evaluated at the specified success, population size, and chance of success.
If given containers of matching lengths, returns the product of probabilities.
- Template Parameters
-
| T_n | type of successes parameter |
| T_N | type of population size parameter |
| theta | type of chance of success parameter |
- Parameters
-
| n | successes parameter |
| N | population size parameter |
| theta | chance of success parameter |
- Returns
- probability or product of probabilities
- Exceptions
-
| std::domain_error | if N is negative |
| std::domain_error | if theta is not a valid probability |
| std::invalid_argument | if container sizes mismatch |
Definition at line 36 of file binomial_cdf.hpp.