Click or drag to resize
VariableConstrainEqualRandomT, TDist Method (T, VariableTDist)
Microsoft Research
Constrains a value to be equal to a random sample from a distribution.

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.6.41128.1 (2.6.41128.1)
Syntax
public static void ConstrainEqualRandom<T, TDist>(
	T a,
	Variable<TDist> b
)
where TDist : Object, Sampleable<T>

Parameters

a
Type: T
The variable to constrain
b
Type: MicrosoftResearch.Infer.ModelsVariableTDist
The distribution

Type Parameters

T
The variable type
TDist
The distribution type
See Also