Returns the log PMF of the logit-parametrized Bernoulli distribution.
If containers are supplied, returns the log sum of the probabilities.
- Template Parameters
-
| T_n | type of integer parameter |
| T_prob | type of chance of success parameter |
- Parameters
-
| n | integer parameter |
| theta | logit-transformed chance of success parameter |
- Returns
- log probability or log sum of probabilities
- Exceptions
-
| std::domain_error | if theta is infinite. |
| std::invalid_argument | if container sizes mismatch. |
Definition at line 36 of file bernoulli_logit_lpmf.hpp.