DiscretizedVariable.addTick
- DiscretizedVariable.addTick(*args)
- Parameters:
aTick (
float) – the Tick to be added- Returns:
the discretized variable
- Return type:
- Raises:
pyagrum.DuplicateElement – If the tick is already defined
pyagrum.DefaultInLabel – If the tick is infinite or NaN
Example
import pyagrum as gum
x = gum.DiscretizedVariable("x", "x", [0, 1, 5, 10])
x.addTick(20)
print(x)
# x:Discretized(<[0;1[,[1;5[,[5;10[,[10;20]>)
Class