generate_dirichlet_clusters_with_sampled_points {nonparametric.bayes}R Documentation

Draws from a Dirichlet distribution and shows the clusters that were generated by this draw. Additionally, adds points to these clusters and shows which clusters are occupied

Description

Each point is generated one at a time, need to hit enter to generate a new point. Typing "x" will stop the clustering and the function will return.

Usage

generate_dirichlet_clusters_with_sampled_points(n, a, K)

Arguments

n

Number of points to be drawn in the clusters

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

generate_dirichlet_clusters_with_sampled_points(15, 0.5, 20)

[Package nonparametric.bayes version 0.0.1 Index]