Stan Math Library
4.9.0
Automatic Differentiation
|
return_type_t< T_rate_cl > stan::math::poisson_lpmf | ( | const T_n_cl & | n, |
const T_rate_cl & | lambda | ||
) |
Returns the log PMF of the Poisson distribution.
If containers are supplied, returns the log sum of the probabilities.
T_n_cl | type of integer parameters |
T_rate_cl | type of chance of success parameters |
n | integer parameter |
lambda | rate parameter |
std::domain_error | if lambda is not a valid probability |
std::invalid_argument | if container sizes mismatch. |
Definition at line 31 of file poisson_lpmf.hpp.