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

◆ beta_neg_binomial_lpmf() [1/2]

template<bool propto, typename T_n , typename T_r , typename T_alpha , typename T_beta , require_all_not_nonscalar_prim_or_rev_kernel_expression_t< T_n, T_r, T_alpha, T_beta > * = nullptr>
return_type_t< T_r, T_alpha, T_beta > stan::math::beta_neg_binomial_lpmf ( const T_n &  n,
const T_r &  r,
const T_alpha &  alpha,
const T_beta &  beta 
)
inline

Returns the log PMF of the Beta Negative Binomial distribution with given number of successes, prior success, and prior failure parameters.

Given containers of matching sizes, returns the log sum of probabilities.

Template Parameters
T_ntype of failure parameter
T_rtype of number of successes parameter
T_alphatype of prior success parameter
T_betatype of prior failure parameter
Parameters
nfailure parameter
rNumber of successes parameter
alphaprior success parameter
betaprior failure parameter
Returns
log probability or log sum of probabilities
Exceptions
std::domain_errorif r, alpha, or beta fails to be positive
std::invalid_argumentif container sizes mismatch

Definition at line 42 of file beta_neg_binomial_lpmf.hpp.