Stan Math Library
5.0.0
Automatic Differentiation
|
return_type_t< T_y_cl, T_shape_cl, T_scale_cl > stan::math::inv_gamma_lpdf | ( | const T_y_cl & | y, |
const T_shape_cl & | alpha, | ||
const T_scale_cl & | beta | ||
) |
The log of an inverse gamma density for y with the specified shape and scale parameters.
Shape and scale parameters must be greater than 0. y must be greater than 0.
y | A scalar variable. |
alpha | Shape parameter. |
beta | Scale parameter. |
std::domain_error | if alpha is not greater than 0. |
std::domain_error | if beta is not greater than 0. |
std::domain_error | if y is not greater than 0. |
T_y | Type of scalar. |
T_shape | Type of shape. |
T_scale | Type of scale. |
Definition at line 39 of file inv_gamma_lpdf.hpp.