Infer.NET Documentation
ConstrainBetween Method (x, lowerBound, upperBound)
Infer.NET code documentationMicrosoftResearch.Infer.ModelsVariableConstrainBetween(Variable<(Of <(Double>)>), Variable<(Of <(Double>)>), Variable<(Of <(Double>)>))
Microsoft Research, Cambridge
Constrains a double variable to be between two limits.
Declaration Syntax
C#Visual BasicVisual C++
public static void ConstrainBetween(
	Variable<double> x,
	Variable<double> lowerBound,
	Variable<double> upperBound
)
Public Shared Sub ConstrainBetween ( _
	x As Variable(Of Double), _
	lowerBound As Variable(Of Double), _
	upperBound As Variable(Of Double) _
)
public:
static void ConstrainBetween(
	Variable<double>^ x, 
	Variable<double>^ lowerBound, 
	Variable<double>^ upperBound
)
Parameters
x (Variable<(Of <(Double>)>))
The variable to constrain
lowerBound (Variable<(Of <(Double>)>))
The lower limit
upperBound (Variable<(Of <(Double>)>))
The upper limit

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