Click or drag to resize
VariableBernoulliList Method (VariableISparseListDouble)
Microsoft Research
Creates a random variable whose domain is a sparse list of bools.

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.6.41128.1 (2.6.41128.1)
Syntax
public static Variable<ISparseList<bool>> BernoulliList(
	Variable<ISparseList<double>> probTrue
)

Parameters

probTrue
Type: MicrosoftResearch.Infer.ModelsVariableISparseListDouble
The sparse list of probTrue elements

Return Value

Type: VariableISparseListBoolean
A SparseBernoulliList distributed random variable
See Also