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

◆ double_exponential_rng()

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

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

mu and sigma can each be a scalar or a one-dimensional container. Any non-scalar inputs must be the same size.

Template Parameters
T_locType of location parameter
T_scaleType of scale parameter
RNGclass of random number generator
Parameters
mu(Sequence of) location parameter(s)
sigma(Sequence of) scale parameter(s)
rngrandom number generator
Returns
(Sequence of) double exponential random variate(s)
Exceptions
std::domain_errorif mu is infinite or sigma is nonpositive
std::invalid_argumentif non-scalar arguments are of different sizes

Definition at line 36 of file double_exponential_rng.hpp.