DiscreteVariable.numericalDomain
- DiscreteVariable.numericalDomain()
Returns the numerical domain of the variable (if the variable is a
pyagrum.NumericalDiscreteVariable)- Raises:
NotImplementedError – If the variable is not a
pyagrum.NumericalDiscreteVariable- Return type:
tuple[float,...]- Returns:
- tuple[float,…]
the numerical domain of the variable
Example
import pyagrum as gum
v = gum.fastVariable("x{0.5|1.5|2.5}") # a NumericalDiscreteVariable
v.numericalDomain()
# (0.5, 1.5, 2.5)
Used by
DiscreteVariable, DiscretizedVariable, IntegerVariable, LabelizedVariable, RangeVariable

Overridden in