update_gamma_exponential

function update_gamma_exponential(x:Real, k:Real, θ:Real) -> (Real, Real)

Update the parameters of a Gamma distribution with an exponential likelihood.

  • x: The variate.
  • k: Prior shape.
  • θ: Prior scale.

Returns: the posterior hyperparameters k' and θ'.