Restaurant


function Restaurant<Arg1, Arg2, Arg3>(α:Arg1, θ:Arg2, n:Arg3) -> Distribution<Real[_]>

Create Chinese restaurant process.

@param α Concentration. @param θ Strength. - n Vector of number of draws of each element, also defining, by its length, the maximum number of components.

function Restaurant<Arg1, Arg2>(α:Arg1, θ:Arg2) -> Distribution<Real[_]>

Create Chinese restaurant process.

@param α Concentration. @param θ Strength.

Constructs a Chinese restaurant process with a maximum of 256 components.