
Last chance! 50% off unlimited learning
Sale ends in
Draws from a Dirichlet distribution and shows the clusters that were generated by this draw. Varying alpha, will put more or less mass in the first clusters compared to higher clusters (rhos).
generate_dirichlet_clusters(a, K)
Parameter that will be passed in to a Gamma distribution in order to draw from the Dirichlet distribution.
Number of clusters to draw
No return value
# NOT RUN {
generate_dirichlet_clusters(10, 10)
generate_dirichlet_clusters(0.5, 30)
# }
Run the code above in your browser using DataLab