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

◆ yule_simon_lpmf() [1/2]

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

Returns the log PMF of the Yule-Simon distribution with shape parameter.

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

Template Parameters
T_ntype of outcome variable
T_alphatype of shape parameter
Parameters
noutcome variable
alphashape parameter
Returns
log probability or log sum of probabilities
Exceptions
std::domain_errorif alpha fails to be positive
std::invalid_argumentif container sizes mismatch

Definition at line 36 of file yule_simon_lpmf.hpp.