samplePriorLabels {batchmix}R 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)

[Package batchmix version 2.2.0 Index]