DiscretizedVariable.label
- DiscretizedVariable.label(i)
- Parameters:
i (
int) – the index of the label we wish to return- Returns:
the label at the given index
- Return type:
str- Raises:
pyagrum.OutOfBounds – If the variable does not contain the label
Example
import pyagrum as gum
x = gum.DiscretizedVariable("x", "x", [0, 1, 5, 10])
x.label(1)
# '[1;5['
Class