update_dirichlet_categorical

function update_dirichlet_categorical(x:Integer, α:Real[_]) -> Real[_]

Update the parameters of a Dirichlet distribution with a categorical likelihood.

  • x: The variate.
  • α: Concentrations.

Returns: the updated parameters α.