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

◆ loglogistic_rng()

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

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

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

Definition at line 34 of file loglogistic_rng.hpp.