template<typename T_loc , typename T_scale , typename T_shape , class RNG >
VectorBuilder< true, double, T_loc, T_scale, T_shape >::type stan::math::pareto_type_2_rng |
( |
const T_loc & |
mu, |
|
|
const T_scale & |
lambda, |
|
|
const T_shape & |
alpha, |
|
|
RNG & |
rng |
|
) |
| |
|
inline |
Return a Pareto type 2 random variate for the given location, scale, and shape using the specified random number generator.
mu, lambda, and alpha 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_shape | type of shape parameter |
RNG | type of random number generator |
- Parameters
-
mu | (Sequence of) location parameter(s) |
lambda | (Sequence of) scale parameter(s) |
alpha | (Sequence of) shape parameter(s) |
rng | random number generator |
- Returns
- (Sequence of) Pareto type 2 random variate(s)
- Exceptions
-
std::domain_error | if mu is infinite or lambda or alpha are nonpositive, |
std::invalid_argument | if non-scalar arguments are of different sizes |
Definition at line 42 of file pareto_type_2_rng.hpp.