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.
- Parameters
-
| y | A scalar variable. |
| alpha | Shape parameter. |
| beta | Scale parameter. |
- Exceptions
-
| 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. |
- Template Parameters
-
| 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.