observe_bernoulli

function observe_bernoulli(x:Boolean, ρ:Real) -> Real

Observe a Bernoulli variate.

  • x: The variate.
  • ρ: Probability of a true result.

Returns: the log probability mass.