powered by
Simulate a discrete distribution as in the chinese restaurant problem
simulateChineseRestaurant(num_elements, chi)
the number of elements to be grouped
the concentration parameter
The sum of x and y
x
y
# NOT RUN { simulateChineseRestaurant(100, 0.2) simulateChineseRestaurant(100, 0.8) # }
Run the code above in your browser using DataLab