update_lazy_linear_gaussian_gaussian


function update_lazy_linear_gaussian_gaussian(x:Expression<Real>, a:Expression<Real>, μ:Expression<Real>, σ2:Expression<Real>, c:Expression<Real>, s2:Expression<Real>) -> (Expression<Real>, Expression<Real>)

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

  • x: The variate.
  • a: Scale.
  • μ: Prior mean.
  • σ2: Prior variance.
  • c: Offset.
  • s2: Likelihood variance.

Returns: the posterior hyperparameters μ' and λ'.