Click or drag to resize
VariableDirichlet Method (Range, VariableVector)
Microsoft Research
Creates a Dirichlet-distributed random variable with the dimensionality specified by a Range object and the pseudo-counts represented by a random variable.

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.6.41128.1 (2.6.41128.1)
Syntax
public static Variable<Vector> Dirichlet(
	Range valueRange,
	Variable<Vector> v
)

Parameters

valueRange
Type: MicrosoftResearch.Infer.ModelsRange
A Range object that is initialized to the Dirichlet distribution's dimensionality.
v
Type: MicrosoftResearch.Infer.ModelsVariableVector
A Vector random variable that represents the pseudo-counts.

Return Value

Type: VariableVector
Returns a Dirichlet-distributed random variable with the dimensionality specified by valueRange and the pseudo-counts specified by v.
See Also