powered by
Draw weights from the stick-breaking prior.
rStickBreakingPrior(alpha, K)
A vector of component weights.
The concentration parameter.
The number of weights to generate.
weights <- rStickBreakingPrior(1, 50)
Run the code above in your browser using DataLab