observe_crp_categorical

function observe_crp_categorical(k:Integer, α:Real, θ:Real, n:Integer[_], N:Integer) -> Real

Observe a categorical variate with Chinese restaurant process prior.

  • x: The variate.
  • α: Concentration.
  • θ: Discount.
  • n: Enumerated items.
  • N: Total number of items.