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

◆ gumbel_rng()

template<typename T_loc , typename T_scale , class RNG >
VectorBuilder< true, double, T_loc, T_scale >::type stan::math::gumbel_rng ( const T_loc &  mu,
const T_scale &  beta,
RNG &  rng 
)
inline

Return a Gumbel random variate with the given location and scale using the specified random number generator.

mu and beta can each be a scalar or a vector. Any non-scalar inputs must be the same length.

Template Parameters
T_loctype of location parameter
T_scaletype of scale parameter
RNGtype of random number generator
Parameters
mu(Sequence of) location parameter(s)
beta(Sequence of) scale parameter(s)
rngrandom number generator
Returns
(Sequence of) Gumbel random variate(s)
Exceptions
std::domain_errorif mu is infinite or beta is nonpositive.
std::invalid_argumentif non-scalar arguments are of different sizes

Definition at line 34 of file gumbel_rng.hpp.