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

◆ yule_simon_cdf()

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

Returns the CDF of the Yule-Simon distribution with shape parameter.

Given containers of matching sizes, returns the product of probabilities.

Template Parameters
T_ntype of outcome parameter
T_alphatype of shape parameter
Parameters
noutcome variable
alphashape parameter
Returns
probability or product 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_cdf.hpp.