Stan Math Library
5.0.0
Automatic Differentiation
|
return_type_t< T_y, T_shape, T_scale > stan::math::inv_gamma_lpdf | ( | const T_y & | y, |
const T_shape & | alpha, | ||
const T_scale & | 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 44 of file inv_gamma_lpdf.hpp.