Click or drag to resize
VariableRandomT Method (IDistributionT)
Microsoft Research
Creates a random variable with a specified prior distribution.

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.6.41128.1 (2.6.41128.1)
Syntax
public static Variable<T> Random<T>(
	IDistribution<T> dist
)

Parameters

dist
Type: MicrosoftResearch.Infer.DistributionsIDistributionT
The prior distribution.

Type Parameters

T
The domain type.

Return Value

Type: VariableT
Returns a random variable that is statistically defined by the specified prior.
See Also