Click or drag to resize
VariableIsPositive Method
Microsoft Research
Returns a boolean random variable indicating if the supplied double random variable is positive.

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> IsPositive(
	Variable<double> x
)

Parameters

x
Type: MicrosoftResearch.Infer.ModelsVariableDouble
The random variable to test for positivity

Return Value

Type: VariableBoolean
True if (x > 0)
See Also