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

◆ yule_simon_rng()

template<typename T_alpha , typename RNG >
auto stan::math::yule_simon_rng ( T_alpha &&  alpha,
RNG &  rng 
)
inline

Return a yule-simon random variate with the given shape parameter, using the given random number generator.

alpha can be a scalar or a one-dimensional container.

Template Parameters
T_alphatype of shape parameter
RNGtype of random number generator
Parameters
alpha(Sequence of) shape parameter(s)
rngrandom number generator
Returns
(Sequence of) yule-simon random variate(s)
Exceptions
std::domain_errorif alpha is nonpositive

Definition at line 30 of file yule_simon_rng.hpp.