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

◆ beta_lpdf() [2/3]

template<bool propto, typename T_y , typename T_scale_succ , typename T_scale_fail , require_all_not_nonscalar_prim_or_rev_kernel_expression_t< T_y, T_scale_succ, T_scale_fail > * = nullptr>
return_type_t< T_y, T_scale_succ, T_scale_fail > stan::math::beta_lpdf ( const T_y &  y,
const T_scale_succ &  alpha,
const T_scale_fail &  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. 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.

Template Parameters
T_ytype of scalar outcome
T_scale_succtype of prior scale for successes
T_scale_failtype of prior scale for failures
Parameters
y(Sequence of) scalar(s).
alpha(Sequence of) prior sample stan::math::size(s).
beta(Sequence of) prior sample stan::math::size(s).
Returns
The log of the product of densities.

Definition at line 47 of file beta_lpdf.hpp.