Return a Pareto random variate for the given shape and scale parameters using the specified random number generator.
y_min and alpha can each be a scalar or a one-dimensional container. Any non-scalar inputs must be the same size.
- Template Parameters
-
T_scale | type of scale parameter |
T_shape | type of shape parameter |
RNG | type of random number generator |
- Parameters
-
y_min | (Sequence of) positive scale parameter(s) |
alpha | (Sequence of) positive shape parameter(s) |
rng | random number generator |
- Returns
- (Sequence of) Pareto random variate(s)
- Exceptions
-
std::domain_error | if y_min or alpha are nonpositive |
std::invalid_argument | if non-scalar arguments are of different sizes |
Definition at line 35 of file pareto_rng.hpp.