View source: R/rStickBreakingPrior.R
rStickBreakingPrior | R Documentation |
Draw weights from the stick-breaking prior.
rStickBreakingPrior(alpha, K)
alpha |
The concentration parameter. |
K |
The number of weights to generate. |
A vector of component weights.
weights <- rStickBreakingPrior(1, 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.