Constrains a variable to be equal to a random sample from a distribution.
| C# | Visual Basic | Visual 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 )
- T
- The variable type
- TDist
- The distribution type
Assembly: Infer.Compiler (Module: Infer.Compiler) Version: 2.3.41111.0 (2.3.41111.0)