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

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