logpdf_crp_categorical
function logpdf_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.