NumericalDiscreteVariable.eraseValue
- NumericalDiscreteVariable.eraseValue(value)
- Parameters:
value (
int) – the value to erase. If the value is not in the domain, the function does nothing (no exception raised)- Return type:
None
Example
import pyagrum as gum
x = gum.NumericalDiscreteVariable("x", "x", [0.5, 1.5, 4])
x.eraseValue(1.5)
print(x)
# x:NumericalDiscrete({0.5|4})
Class