Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
The log of the negative binomial density for the specified scalars given the specified mean(s) and deviation(s).
n, mu, or phi can each be either a scalar or a vector matrix_cl. Any vector inputs must be the same length.
The result log probability is defined to be the sum of the log probabilities for each observation/mean/deviation triple.
T_n_cl | type of scalar |
T_location_cl | type of location parameter |
T_precision_cl | type of precision parameter |
n | (Sequence of) scalar(s). |
mu | (Sequence of) location parameter(s) |
phi | (Sequence of) precision parameters |
std::domain_error | if the scale is not positive. |
Definition at line 42 of file neg_binomial_2_lpmf.hpp.