Returns the log PMF for the Poisson-binomial distribution evaluated at an specified array of numbers of successes and probabilities of successes.
- Template Parameters
-
T_y | type of number of successes parameter |
T_theta | type of chance of success parameters |
- Parameters
-
y | input scalar, vector, or nested vector of numbers of successes |
theta | array of chances of success parameters |
- Returns
- sum of log probabilities
- Exceptions
-
std::domain_error | if y is out of bounds |
std::domain_error | if theta is not a valid vector of probabilities |
std::invalid_argument | If y and theta are different lengths |
Definition at line 28 of file poisson_binomial_lpmf.hpp.