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

Declaration Syntax

Generic Template Parameters
- TEnum
- The type of the enum

Parameters
- probs (Variable<(Of <(Vector>)>))
- A variable holding 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)