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_loc | Type of location parameter |
T_prec | Type of precision parameter |
RNG | type of random number generator |
- Parameters
-
mu | (Sequence of) location parameter(s) in (0, 1) |
kappa | (Sequence of) positive finite precision parameter(s) |
rng | random number generator |
- Returns
- (Sequence of) beta random variate(s)
- Exceptions
-
std::domain_error | if mu is outside of (0, 1) |
std::domain_error | if kappa is nonpositive |
std::invalid_argument | if non-scalar arguments are of different sizes |
Definition at line 36 of file beta_proportion_rng.hpp.