LabelizedVariable.varType

LabelizedVariable.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

c = gum.LabelizedVariable("c", "color", ["red", "green", "blue"])
c.varType() == gum.VarType_LABELIZED
# True

Class

LabelizedVariable