Infer.NET Documentation
Bernoulli Method (probTrue)
Infer.NET code documentationMicrosoftResearch.Infer.ModelsVariableBernoulli(Double)
Microsoft Research, Cambridge
Creates a boolean random variable with the specified probability of being true.
Declaration Syntax
C#Visual BasicVisual C++
public static Variable<bool> Bernoulli(
	double probTrue
)
Public Shared Function Bernoulli ( _
	probTrue As Double _
) As Variable(Of Boolean)
public:
static Variable<bool>^ Bernoulli(
	double probTrue
)
Parameters
probTrue (Double)
The probability that the variable is true.
Return Value
Boolean random variable

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