Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
The log of the negative binomial density for the specified scalars given the specified mean(s) and deviation(s).
n, alpha, or beta 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_shape_cl | type of location parameter |
T_inv_scale_cl | type of precision parameter |
n | (Sequence of) scalar(s). |
alpha | (Sequence of) location parameter(s) |
beta | (Sequence of) precision parameters |
std::domain_error | if the scale is not positive. |
Definition at line 40 of file neg_binomial_lpmf.hpp.