Click or drag to resize
VariableBinomial Method (VariableInt32, VariableDouble)
Microsoft Research
Creates a Binomially-distributed random variable with the specified probability of success per trial and number of trials.

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.6.41128.1 (2.6.41128.1)
Syntax
public static Variable<int> Binomial(
	Variable<int> trialCount,
	Variable<double> probSuccess
)

Parameters

trialCount
Type: MicrosoftResearch.Infer.ModelsVariableInt32
A variable containing the number of trials
probSuccess
Type: MicrosoftResearch.Infer.ModelsVariableDouble
A variable containing the probability of success per trial

Return Value

Type: VariableInt32
See Also