Learn R Programming

mdir (version 0.9.0)

sampleViewPriorLabels: Sample view prior labels

Description

Generate labels from the stick-breaking prior.

Usage

sampleViewPriorLabels(alpha, K, N)

Value

A vector of labels.

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.

Examples

Run this code
initial_labels <- sampleViewPriorLabels(1, 50, 100)

Run the code above in your browser using DataLab