simulate_normal_inverse_gamma_gaussian

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

Simulate a Gaussian distribution with a normal inverse-gamma prior.

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