samplePriorLabels: Sample prior labels

View source: R/samplePriorLabels.R

samplePriorLabelsR Documentation

Sample prior labels

Description

Generate labels from the stick-breaking prior.

Usage

samplePriorLabels(alpha, K, N)

Arguments

alpha

The concentration parameter for the stick-breaking prior.

K

The number of components to include (the upper bound on the number of unique labels generated).

N

The number of labels to generate.

Value

A vector of labels.

Examples

initial_labels <- samplePriorLabels(1, 50, 100)

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