Gaussian StructureInfer.NET Documentation
Microsoft Research, Cambridge
Represents a one-dimensional Gaussian distribution.

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


The distribution is represented by two parameters: MeanTimesPrecision and Precision. Precision is the inverse of the variance, so a Gaussian with mean m and variance v is represented as Precision = 1/v, MeanTimesPrecision = m/v.

Some special cases: If the Precision is zero, then the distribution is uniform. If the Precision is infinite, then the distribution is a point mass. The Point property gives the location of the point mass.

The formula for the distribution is: N(x;m,v) = 1/sqrt(2*pi*v) * exp(-(x-m)^2/(2v)). When v=0, this reduces to delta(x-m). When v=infinity, the density is redefined to be 1. When v < 0, the density is redefined to be exp(-0.5*x^2*(1/v) + x*(m/v)), i.e. we drop the terms exp(-m^2/(2v))/sqrt(2*pi*v).

See Also