Skip to content

Bernoulli


final 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>) -> Distribution<Boolean>

Create Bernoulli distribution.

function Bernoulli(ρ:Real) -> Distribution<Boolean>

Create Bernoulli distribution.