Click or drag to resize
VariableIsBetween Method
Microsoft Research
Returns a boolean random variable indicating if the supplied double random variable is between the specified limits.

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.6.41128.1 (2.6.41128.1)
Syntax
public static Variable<bool> IsBetween(
	Variable<double> x,
	Variable<double> lowerBound,
	Variable<double> upperBound
)

Parameters

x
Type: MicrosoftResearch.Infer.ModelsVariableDouble
The double variable to test
lowerBound
Type: MicrosoftResearch.Infer.ModelsVariableDouble
The lower limit
upperBound
Type: MicrosoftResearch.Infer.ModelsVariableDouble
The upper limit

Return Value

Type: VariableBoolean
True if (lowerBound <= x) and (x < upperBound)
See Also