simulate_normal_inverse_gamma

function simulate_normal_inverse_gamma(μ:Real, a2:Real, α:Real, β:Real) -> Real

Simulate a normal inverse-gamma distribution.

  • μ: Mean.
  • a2: Variance.
  • α: Shape of inverse-gamma on scale.
  • β: Scale of inverse-gamma on scale.