Learn R Programming

DPP (version 0.1.2)

simulateChineseRestaurant: Simulate a discrete distribution as in the chinese restaurant problem

Description

Simulate a discrete distribution as in the chinese restaurant problem

Usage

simulateChineseRestaurant(num_elements, chi)

Arguments

num_elements

the number of elements to be grouped

chi

the concentration parameter

Value

The sum of x and y

Examples

Run this code
# NOT RUN {
simulateChineseRestaurant(100, 0.2)
simulateChineseRestaurant(100, 0.8)
# }

Run the code above in your browser using DataLab