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

Declaration Syntax
public static Variable<TEnum> EnumDiscrete<TEnum>(
params double[] probs
)
Public Shared Function EnumDiscrete(Of TEnum) ( _
ParamArray probs As Double() _
) As Variable(Of TEnum)
public:
generic<typename TEnum>
static Variable<TEnum>^ EnumDiscrete(
... array<double>^ probs
)

Generic Template Parameters
- TEnum
- The type of the enum

Parameters
- probs (array<
Double
>[]()[])
- The set 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)