lpartition_bernoulli

function lpartition_bernoulli(ρ:Real) -> Real

Log partition function of a Bernoulli variate.

  • ρ: Probability of a true result.

Return: the log of the normalization constant.