Learn R Programming

batchmix (version 2.2.1)

rStickBreakingPrior: Random Draw From Stick Breaking Prior

Description

Draw weights from the stick-breaking prior.

Usage

rStickBreakingPrior(alpha, K)

Value

A vector of component weights.

Arguments

alpha

The concentration parameter.

K

The number of weights to generate.

Examples

Run this code
weights <- rStickBreakingPrior(1, 50)

Run the code above in your browser using DataLab