Stan Math Library
5.0.0
Automatic Differentiation
|
return_type_t< T_prob_cl > stan::math::bernoulli_cdf | ( | const T_n_cl & | n, |
const T_prob_cl & | theta | ||
) |
Returns the CDF of the Bernoulli distribution.
If containers are supplied, returns the product of the probabilities.
T_n_cl | type of integer parameter |
T_prob_cl | type of chance of success parameter |
n | integer parameter |
theta | logit-transformed chance of success parameter |
std::domain_error | if theta is not a valid probability |
std::invalid_argument | if container sizes mismatch. |
Definition at line 30 of file bernoulli_cdf.hpp.