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

◆ weibull_rng()

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

Return a Weibull random variate for the given shape and scale parameters using the specified random number generator.

alpha and sigma can each be a scalar or a one-dimensional container. Any non-scalar inputs must be the same size.

Template Parameters
T_shapetype of shape parameter
T_scaletype of scale parameter
RNGtype of random number generator
Parameters
alpha(Sequence of) positive shape parameter(s)
sigma(Sequence of) positive scale parameter(s)
rngrandom number generator
Returns
(Sequence of) Weibull random variate(s)
Exceptions
std::domain_errorif alpha is nonpositive or sigma is nonpositive
std::invalid_argumentif non-scalar arguments are of different sizes

Definition at line 33 of file weibull_rng.hpp.