Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


nonparametric.bayes (version 0.0.1)

generate_dirichlet_clusters: 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).

Description

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).

Usage

generate_dirichlet_clusters(a, K)

Arguments

a

Parameter that will be passed in to a Gamma distribution in order to draw from the Dirichlet distribution.

K

Number of clusters to draw

Value

No return value

Examples

Run this code
# NOT RUN {
generate_dirichlet_clusters(10, 10)
generate_dirichlet_clusters(0.5, 30)
# }

Run the code above in your browser using DataLab