rStickBreakingPrior {batchmix} | R Documentation |
Random Draw From Stick Breaking Prior
Description
Draw weights from the stick-breaking prior.
Usage
rStickBreakingPrior(alpha, K)
Arguments
alpha |
The concentration parameter. |
K |
The number of weights to generate. |
Value
A vector of component weights.
Examples
weights <- rStickBreakingPrior(1, 50)
[Package batchmix version 2.2.1 Index]