update_linear_gaussian_gaussian

function update_linear_gaussian_gaussian(x:Real, a:Real, μ:Real, λ:Real, c:Real, l:Real) -> (Real, Real)

Update the parameters of a Gaussian distribution with a Gaussian likelihood and scaling.

  • x: The variate.
  • a: Scale.
  • μ: Prior mean.
  • λ: Prior precision.
  • c: Offset.
  • l: Likelihood precision.

Returns: the posterior hyperparameters μ' and λ'.