Skip to content

Restaurant


final class Restaurant(α:Expression<Real>, θ:Expression<Real>) < 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.

Factory Functions

Name Description
Restaurant Create Chinese restaurant process.
Restaurant Create Chinese restaurant process.
Restaurant Create Chinese restaurant process.
Restaurant Create Chinese restaurant process.

Member Variables

Name Description
α:Expression<Real> Concentration.
θ:Expression<Real> Strength.
n:Integer[_] Number of samples drawn in each component.
K:Integer Number of components enumerated.
N:Integer Number of samples drawn.

Factory Function Details

function Restaurant(α:Expression<Real>, θ:Expression<Real>) -> Restaurant

Create Chinese restaurant process.

function Restaurant(α:Expression<Real>, θ:Real) -> Restaurant

Create Chinese restaurant process.

function Restaurant(α:Real, θ:Expression<Real>) -> Restaurant

Create Chinese restaurant process.

function Restaurant(α:Real, θ:Real) -> Restaurant

Create Chinese restaurant process.