Infer.NET Documentation
Beta Method (trueCount, falseCount)
Infer.NET code documentationMicrosoftResearch.Infer.ModelsVariableBeta(Double, Double)
Microsoft Research, Cambridge
Creates a beta distributed random variable from initial counts.
Declaration Syntax
C#Visual BasicVisual C++
public static Variable<double> Beta(
	double trueCount,
	double falseCount
)
Public Shared Function Beta ( _
	trueCount As Double, _
	falseCount As Double _
) As Variable(Of Double)
public:
static Variable<double>^ Beta(
	double trueCount, 
	double falseCount
)
Parameters
trueCount (Double)
The initial count of successes.
falseCount (Double)
The initial count of failures.
Return Value
x ~ Beta(trueCount,falseCount)
Remarks
The formula for the distribution is p(x) = (Gamma(trueCount+falseCount)/Gamma(trueCount)/Gamma(falseCount)) x^{trueCount-1} (1-x)^(falseCount-1) where x lies between 0 and 1.

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