Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ pareto_rng()

template<typename T_shape , typename T_scale , class RNG >
VectorBuilder< true, double, T_shape, T_scale >::type stan::math::pareto_rng ( const T_scale &  y_min,
const T_shape &  alpha,
RNG &  rng 
)
inline

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_scaletype of scale parameter
T_shapetype of shape parameter
RNGtype of random number generator
Parameters
y_min(Sequence of) positive scale parameter(s)
alpha(Sequence of) positive shape parameter(s)
rngrandom number generator
Returns
(Sequence of) Pareto random variate(s)
Exceptions
std::domain_errorif y_min or alpha are nonpositive
std::invalid_argumentif non-scalar arguments are of different sizes

Definition at line 35 of file pareto_rng.hpp.