View source: R/samplePriorLabels.R
samplePriorLabels | R Documentation |
Generate labels from the stick-breaking prior.
samplePriorLabels(alpha, K, N)
alpha |
The concentration parameter for the stick-breaking prior. |
K |
The number of components to include (the upper bound on the number of unique labels generated). |
N |
The number of labels to generate. |
A vector of labels.
initial_labels <- samplePriorLabels(1, 50, 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.