Infer.NET Documentation
Binomial Method (trialCount, probSuccess)
Infer.NET code documentationMicrosoftResearch.Infer.ModelsVariableBinomial(Variable<(Of <(Int32>)>), Double)
Microsoft Research, Cambridge
Creates a Binomially-distributed random variable with the specified probability of success per trial and number of trials.
Declaration Syntax
C#Visual BasicVisual C++
public static Variable<int> Binomial(
	Variable<int> trialCount,
	double probSuccess
)
Public Shared Function Binomial ( _
	trialCount As Variable(Of Integer), _
	probSuccess As Double _
) As Variable(Of Integer)
public:
static Variable<int>^ Binomial(
	Variable<int>^ trialCount, 
	double probSuccess
)
Parameters
trialCount (Variable<(Of <(Int32>)>))
A variable containing the number of trials
probSuccess (Double)
The probability of success per trial
Return Value

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