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