Stan Math Library
4.9.0
Automatic Differentiation
|
return_type_t< T_n_cl, T_size1_cl, T_size2_cl > stan::math::beta_binomial_lpmf | ( | const T_n_cl & | n, |
const T_N_cl | N, | ||
const T_size1_cl & | alpha, | ||
const T_size2_cl & | beta | ||
) |
Returns the log PMF of the Beta-Binomial distribution with given population size, prior success, and prior failure parameters.
Given containers of matching sizes, returns the log sum of probabilities.
T_n | type of success parameter |
T_N | type of population size parameter |
T_size1 | type of prior success parameter |
T_size2 | type of prior failure parameter |
n | success parameter |
N | population size parameter |
alpha | prior success parameter |
beta | prior failure parameter |
std::domain_error | if N, alpha, or beta fails to be positive |
std::invalid_argument | if container sizes mismatch |
Definition at line 43 of file beta_binomial_lpmf.hpp.