Extract posterior cluster allocation
allocation.RdComputes posterior cluster allocations from a fitted Dirichlet process mixture model using the Chinese Restaurant Process (CRP) or spliced backend. The method computes the posterior similarity matrix (PSM), identifies a representative partition using Dahl's method, and optionally predicts cluster memberships for new data.