Click or drag to resize
VariableGammaFromMeanAndVariance Method (Double, Double)
Microsoft Research
Creates a Gamma-distributed random variable with specified mean and variance parameters.

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> GammaFromMeanAndVariance(
	double mean,
	double variance
)

Parameters

mean
Type: SystemDouble
The mean parameter value.
variance
Type: SystemDouble
The variance parameter value.

Return Value

Type: VariableDouble
Returns a Gamma-distributed random variable with the specified mean and variance parameters.
See Also