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

◆ skew_normal_rng()

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

Return a Skew-normal random variate for the given location, scale, and shape using the specified random number generator.

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

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

Definition at line 40 of file skew_normal_rng.hpp.