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