Skip to content

Categorical

class Categorical(ρ:Expression<Real[_]>) < Distribution<Integer>

Categorical distribution.

Factory Functions

Name Description
Categorical Create categorical distribution.
Categorical Create categorical distribution.

Member Variables

Name Description
ρ:Expression<Real[_]> Category probabilities.

Factory Function Details

function Categorical(ρ:Expression<Real[_]>) -> Categorical

Create categorical distribution.

function Categorical(ρ:Real[_]) -> Categorical

Create categorical distribution.