rStickBreakingPrior: Random Draw From Stick Breaking Prior

View source: R/rStickBreakingPrior.R

rStickBreakingPriorR 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)

batchmix documentation built on May 29, 2024, 2:14 a.m.