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

◆ exp_mod_normal_rng()

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

Return an exponentially modified normal random variate for the given location, scale, and inverse scale using the specified random number generator.

mu, sigma, and lambda 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
T_inv_scaleType of inverse scale parameter
RNGtype of random number generator
Parameters
mu(Sequence of) location parameter(s)
sigma(Sequence of) scale parameter(s)
lambda(Sequence of) inverse scale parameter(s)
rngrandom number generator
Returns
(Sequence of) Exponentially modified normal random variate(s)
Exceptions
std::domain_errorif mu is infinite, sigma is nonpositive, or lambda is nonpositive
std::invalid_argumentif non-scalar arguments are of different sizes

Definition at line 40 of file exp_mod_normal_rng.hpp.