Return a lognormal random variate for 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_loc | type of location parameter |
T_scale | type of scale parameter |
RNG | type of random number generator |
- Parameters
-
mu | (Sequence of) location parameter(s) |
sigma | (Sequence of) positive scale parameter(s) |
rng | random number generator |
- Returns
- (Sequence of) Normal random variate(s)
- Exceptions
-
std::domain_error | if mu is infinite or sigma is nonpositive |
std::invalid_argument | if non-scalar arguments are of different sizes |
Definition at line 33 of file lognormal_rng.hpp.