rCRP: Draw from Chinese restaurant process

View source: R/main.R

rCRPR Documentation

Draw from Chinese restaurant process

Description

Draw a partition of n values from the Chinese restaurant process with concentration parameter alpha.

Usage

rCRP(n, alpha = 1)

Arguments

n

the number of random draws.

alpha

the concentration parameter of the process.


bobverity/bobfunctions2 documentation built on July 4, 2023, 8:55 p.m.