Return a Cauchy random variate for the given location and scale using the specified random number generator.
mu and sigma can each be a scalar or a vector. Any non-scalar inputs must be the same length.
- 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) scale parameter(s) |
rng | random number generator |
- Returns
- (Sequence of) Cauchy 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 cauchy_rng.hpp.