pmf_bernoulli

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

PMF of a Bernoulli variate.

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

Return: the probability mass.