Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ poisson_log_lpmf() [1/3]

template<bool propto, typename T_n_cl , typename T_log_rate_cl , require_all_prim_or_rev_kernel_expression_t< T_n_cl, T_log_rate_cl > * = nullptr, require_any_not_stan_scalar_t< T_n_cl, T_log_rate_cl > * = nullptr>
return_type_t< T_log_rate_cl > stan::math::poisson_log_lpmf ( const T_n_cl &  n,
const T_log_rate_cl &  alpha 
)

Returns the log PMF of the Poisson log distribution.

If containers are supplied, returns the log sum of the probabilities.

Template Parameters
T_n_cltype of integer parameters
T_log_rate_cltype of chance of success parameters
Parameters
ninteger parameter
alphalog rate parameter
Returns
log probability or log sum of probabilities
Exceptions
std::domain_errorif alpha is not a valid probability
std::invalid_argumentif container sizes mismatch.

Definition at line 31 of file poisson_log_lpmf.hpp.