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

◆ yule_simon_lccdf()

template<typename T_n , typename T_alpha >
return_type_t< T_alpha > stan::math::yule_simon_lccdf ( const T_n &  n,
const T_alpha &  alpha 
)
inline

Returns the log CCDF 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 parameter
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 34 of file yule_simon_lccdf.hpp.