A.setenum()

Read(528) Label: enumerated value, map,

Description:

Map enumerated values as integers.

Syntax:

A.setenum()

During modeling, map members in enumerated variable A as integers and return a binary sequence containing the mapping result and mapping process records Rec

A.setenum@r(Rec)

During scoring, perform mapping in the same rule on enumerated variable A according to mapping process records Rec; map each new enumerated value in the scoring data as 0

Note:

The external library function (See External Library Guide) maps enumerated values as integers.

Parameter:

A

A sequence of enumerated variable values

Rec

A sequence of mapping process records

Option:

@c

Change original data into mapping result after execution

Return value:

A sequence

Example:

 

A

 

1

[a,b,f,r,g,j,r]

 

2

[b,a,f,r,g,j,r,p]

 

3

=A1.setenum@c()

A3(1) Mapping result;

A3(2) Mapping process records Rec.

@c Change original data into mapping result.

4

=A2.setenum@r(A3(2))

Map members of A2 according to A3’s mapping process records Rec.