You are here: Symbol Reference > DBClassifier Namespace > Classes > TFieldColumn Class > TFieldColumn Methods > TFieldColumn.GetIndex Method
Data Miner
TFieldColumn.GetIndex Method

Maps a value of a discrete attribute to its indexed (integer) representation and returns that index.

function GetIndex(const Missing: string): integer;

All discrete values, which already occured once, are stored in the AttributeValueList property. If the AttributeValueList does not contain the current value of the attribute, the new value is added to the attributeValueList and a new index is assigned to it. The list is not sorted and it matters in which order the different discrete values are found. The Missing parameter is the value denoting a missing value. If the value of the attribute equals the missing value, the function returns -1.

Copyright (c) 1999-2017 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!