Constrains a value to be equal to a random sample from a distribution.
| C# | Visual Basic | Visual 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 )
- T
- The variable type
- TDist
- The distribution type
- a (T)
- The variable to constrain
- b (Variable<(Of <(TDist>)>))
- The distribution