Infer.NET Documentation
ConstrainEqualRandom<(Of <(T, TDist>)>) Method (a, b)
Infer.NET code documentationMicrosoftResearch.Infer.ModelsVariableConstrainEqualRandom<(Of <(T, TDist>)>)(Variable<(Of <(T>)>), TDist)
Microsoft Research, Cambridge
Constrains a variable to be equal to a random sample from a known distribution.
Declaration Syntax
C#Visual BasicVisual C++
public static void ConstrainEqualRandom<T, TDist>(
	Variable<T> a,
	TDist b
)
where TDist : Sampleable<T>
Public Shared Sub ConstrainEqualRandom(Of T, TDist As Sampleable(Of T)) ( _
	a As Variable(Of T), _
	b As TDist _
)
public:
generic<typename T, typename TDist>
where TDist : Sampleable<T>
static void ConstrainEqualRandom(
	Variable<T>^ a, 
	TDist b
)
Generic Template Parameters
T
The variable type
TDist
The distribution type
Parameters
a (Variable<(Of <(T>)>))
The variable to constrain
b (TDist)
The distribution

Assembly: Infer.Compiler (Module: Infer.Compiler) Version: 2.3.41111.0 (2.3.41111.0)