NumericalDiscreteVariable.varType
- NumericalDiscreteVariable.varType()
returns the type of variable
- Returns:
the type of the variable.
0: DiscretizedVariable, 1: LabelizedVariable, 2: IntegerVariable, 3: NumericalDiscreteVariable, 4: RangeVariable
- Return type:
int
Example
import pyagrum as gum
x = gum.NumericalDiscreteVariable("x", "x", [0.5, 1.5, 4])
x.varType() == gum.VarType_NUMERICAL
# True
Class