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_loc | Type of location parameter |
| T_scale | Type of scale parameter |
| T_inv_scale | Type of inverse scale parameter |
| RNG | type of random number generator |
- Parameters
-
| mu | (Sequence of) location parameter(s) |
| sigma | (Sequence of) scale parameter(s) |
| lambda | (Sequence of) inverse scale parameter(s) |
| rng | random number generator |
- Returns
- (Sequence of) Exponentially modified normal random variate(s)
- Exceptions
-
| std::domain_error | if mu is infinite, sigma is nonpositive, or lambda is nonpositive |
| std::invalid_argument | if non-scalar arguments are of different sizes |
Definition at line 40 of file exp_mod_normal_rng.hpp.