Stan Math Library
5.0.0
Automatic Differentiation
|
return_type_t< T_y_cl, T_scale_succ_cl, T_scale_fail_cl > stan::math::beta_lpdf | ( | const T_y_cl & | y, |
const T_scale_succ_cl & | alpha, | ||
const T_scale_fail_cl & | beta | ||
) |
The log of the beta density for the specified scalar(s) given the specified sample stan::math::size(s).
y, alpha, or beta can each either be scalar or a vector on OpenCL device. Any vector inputs must be the same length.
The result log probability is defined to be the sum of the log probabilities for each observation/alpha/beta triple.
Prior sample sizes, alpha and beta, must be greater than 0.
T_y_cl | type of scalar outcome |
T_scale_succ_cl | type of prior scale for successes |
T_scale_fail_cl | type of prior scale for failures |
y | (Sequence of) scalar(s). |
alpha | (Sequence of) prior sample stan::math::size(s). |
beta | (Sequence of) prior sample stan::math::size(s). |
Definition at line 43 of file beta_lpdf.hpp.