observe_linear_normal_inverse_gamma_gaussian

function observe_linear_normal_inverse_gamma_gaussian(x:Real, a:Real, μ:Real, c:Real, a2:Real, α:Real, β:Real) -> Real

Observe a Gaussian variate with a normal inverse-gamma prior with linear transformation.

  • x: The variate.
  • a: Scale.
  • μ: Mean.
  • c: Offset.
  • a2: Variance.
  • α: Shape of the inverse-gamma.
  • β: Scale of the inverse-gamma.

Returns: the log probability density.