DiscretizedVariable.tick
- DiscretizedVariable.tick(i)
Indicate the index of the Tick
- Parameters:
i (
int) – the index of the Tick- Returns:
aTick – the i-th Tick
- Return type:
float- Raises:
pyagrum.NotFound – If the index is greater than the number of Ticks
Example
import pyagrum as gum
x = gum.DiscretizedVariable("x", "x", [0, 1, 5, 10])
x.tick(2)
# 5.0
Class