Click or drag to resize
VariableGaussianFromMeanAndPrecision Method (VariableDouble, VariableDouble)
Microsoft Research
Creates a Gaussian-distributed random variable with mean and precision represented by random variables.

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.6.41128.1 (2.6.41128.1)
Syntax
public static Variable<double> GaussianFromMeanAndPrecision(
	Variable<double> mean,
	Variable<double> precision
)

Parameters

mean
Type: MicrosoftResearch.Infer.ModelsVariableDouble
A double random variable that represents the mean value.
precision
Type: MicrosoftResearch.Infer.ModelsVariableDouble
A double random variable that represents the precision value.

Return Value

Type: VariableDouble
Returns a Gaussian-distributed random variable with the specified mean and precision.
Remarks
The variance is 1/precision.
See Also