Microsoft Research, Cambridge
Creates a random enum variable with a discrete distribution using the given probabilities for the enum values.

Declaration Syntax
Public Shared Function EnumDiscrete(Of TEnum) ( _
probs As Vector _
) As Variable(Of TEnum)
public:
generic<typename TEnum>
static Variable<TEnum>^ EnumDiscrete(
Vector^ probs
)

Generic Template Parameters
- TEnum
- The type of the enum

Parameters
- probs (Vector)
- The vector of probabilities of having each value. Must add up to one.

Return Value
Enum random variable
Assembly:
Infer.Compiler (Module: Infer.Compiler) Version: 2.3.41111.0 (2.3.41111.0)