Click or drag to resize
VariableEnumUniformTEnum Method (Range)
Microsoft Research
Creates a random variable with a Discrete distribution with the dimension specified by a Range object and a uniform distribution.

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.6.41128.1 (2.6.41128.1)
Syntax
public static Variable<TEnum> EnumUniform<TEnum>(
	Range valueRange
)

Parameters

valueRange
Type: MicrosoftResearch.Infer.ModelsRange
A range over the enum values.

Type Parameters

TEnum
The type of the enum

Return Value

Type: VariableTEnum
Enum random variable
See Also