Skip to content

RestaurantDistribution


final class RestaurantDistribution<Arg1, Arg2>(α:Arg1, θ:Arg2) < Distribution<Real[_]>

Chinese restaurant process (CRP).

A Random assigned this distribution cannot be instantiated or its likelihood evaluated. The distribution exists only for use as a prior on a Categorical distribution.

Member Variables

Name Description
α:Arg1 Concentration.
θ:Arg2 Strength.
n:Integer[_] Number of samples drawn in each component.
N:Integer Number of samples drawn.