Returns the log PMF of the Beta Negative Binomial distribution with given number of successes, prior success, and prior failure parameters.
Given containers of matching sizes, returns the log sum of probabilities.
- Template Parameters
-
T_n | type of failure parameter |
T_r | type of number of successes parameter |
T_alpha | type of prior success parameter |
T_beta | type of prior failure parameter |
- Parameters
-
n | failure parameter |
r | Number of successes parameter |
alpha | prior success parameter |
beta | prior failure parameter |
- Returns
- log probability or log sum of probabilities
- Exceptions
-
std::domain_error | if r, alpha, or beta fails to be positive |
std::invalid_argument | if container sizes mismatch |
Definition at line 42 of file beta_neg_binomial_lpmf.hpp.