Generate Truncated Dirichlet Process Mixture.
simulate_DP(N, K, param, alpha, f)Number of data points.
Max cluster.
Data.frame of parameters corresponding to d and r distribution functions. (E.g., data.frame(mean = rnorm(50), sd = abs(rnorm(50, 0, .5))))
Numeric. The alpha parameter to the DP.
Character. Root name of base or kernel function (e.g., "norm", "exp").
List of data (y), weights (pi), params (param), and the true density function (d).