Bernoulli StructureInfer.NET Documentation
Microsoft Research, Cambridge
Represents a distribution on a binary variable.

Namespace: MicrosoftResearch.Infer.Distributions
Assembly: Infer.Runtime (in Infer.Runtime.dll) Version: 2.5.30417.0 (2.5.30417.0)


The most common way to use the distribution is to get and set its ProbTrue property. The distribution is represented by a single number, the log odds: log p(x=true)/p(x=false). If this is 0, then the distribution is uniform. If this is infinity, then the distribution is a point mass on x=true. If this is -infinity, then the distribution is a point mass on x=false. In terms of the log odds, p(x=true) = 1/(1+exp(-logOdds)).
See Also