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

◆ beta_proportion_rng()

template<typename T_loc , typename T_prec , class RNG >
VectorBuilder< true, double, T_loc, T_prec >::type stan::math::beta_proportion_rng ( const T_loc &  mu,
const T_prec &  kappa,
RNG &  rng 
)
inline

Return a Beta random variate specified probability, location, and precision parameters: beta_proportion_rng(y | mu, kappa) = beta_rng(y | mu * kappa, (1 - mu) * kappa).

Any arguments other than scalars must be containers of the same size. With non-scalar arguments, the return is a container matching the size of the arguments with scalars broadcast as necessary.

Template Parameters
T_locType of location parameter
T_precType of precision parameter
RNGtype of random number generator
Parameters
mu(Sequence of) location parameter(s) in (0, 1)
kappa(Sequence of) positive finite precision parameter(s)
rngrandom number generator
Returns
(Sequence of) beta random variate(s)
Exceptions
std::domain_errorif mu is outside of (0, 1)
std::domain_errorif kappa is nonpositive
std::invalid_argumentif non-scalar arguments are of different sizes

Definition at line 36 of file beta_proportion_rng.hpp.