Skip to content

Bernoulli


class Bernoulli(ρ:Expression<Real>) < Distribution<Boolean>

Bernoulli distribution.

Factory Functions

Name Description
Bernoulli Create Bernoulli distribution.
Bernoulli Create Bernoulli distribution.

Member Variables

Name Description
ρ:Expression<Real> Success probability.

Factory Function Details

function Bernoulli(ρ:Expression<Real>) -> Bernoulli

Create Bernoulli distribution.

function Bernoulli(ρ:Real) -> Bernoulli

Create Bernoulli distribution.