DiscretizedVariable.isTick

DiscretizedVariable.isTick(aTick)
Parameters:

aTick (float) – the Tick to be tested

Returns:

True if the Tick already exists

Return type:

bool

Example

import pyagrum as gum

x = gum.DiscretizedVariable("x", "x", [0, 1, 5, 10])
x.isTick(5)
# True
x.isTick(4)
# False

Class

DiscretizedVariable