Stan Math Library
4.9.0
Automatic Differentiation
|
return_type_t< T_prob > stan::math::binomial_cdf | ( | const T_n & | n, |
const T_N & | N, | ||
const T_prob & | theta | ||
) |
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.
T_n | type of successes parameter |
T_N | type of population size parameter |
theta | type of chance of success parameter |
n | successes parameter |
N | population size parameter |
theta | chance of success parameter |
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.