com.ibm.able.beans
Class AbleCategoricalField
java.lang.Object
|
+--com.ibm.able.data.AbleLhs
|
+--com.ibm.able.data.AbleVariable
|
+--com.ibm.able.data.AbleCategoricalVariable
|
+--com.ibm.able.beans.AbleCategoricalField
- public class AbleCategoricalField
- extends AbleCategoricalVariable
- implements AbleField
- See Also:
- Serialized Form
Field Summary |
protected int |
column
|
protected java.util.Hashtable |
table
|
protected int |
usage
|
Methods inherited from class com.ibm.able.data.AbleCategoricalVariable |
addValue,
cmpEq,
cmpGt,
cmpGtEq,
cmpLt,
cmpLtEq,
cmpNeq,
Copyright,
getBooleanValue,
getFuzzyValue,
getGenericValue,
getIndexOf,
getInitialValue,
getNumericValue,
getStringValue,
getValue,
getValueAt,
getValueList,
getValueListSize,
getValueString,
removeValue,
reset,
rlDclString,
setBooleanValue,
setFuzzyValue,
setGenericValue,
setNumericValue,
setStringValue,
setValue,
setValueList,
setValueString,
toString,
valueExist,
xmlCWrString,
xmlDclString |
Methods inherited from class com.ibm.able.data.AbleVariable |
getChgSupport,
getContext,
getDataType,
getDataTypeAsString,
getId,
getName,
getReferences,
getReferent,
rlCRdString,
setChgSupport,
setContext,
setId,
setReferences,
xmlCRdString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
usage
protected int usage
column
protected int column
table
protected java.util.Hashtable table
computeStatistics
public void computeStatistics(java.lang.String inValue)
- Add unique symbols to a symbol table and list of legal discrete values
This is used to create symbol tables for translate filters, etc.
- Specified by:
- computeStatistics in interface AbleField
getNumericValue
public double getNumericValue(java.lang.String inValue)
- translate inValue index into a one-of-N code
convert from 0 to n-1 to being 1..N
- Specified by:
- getNumericValue in interface AbleField
getNormalizedSize
public int getNormalizedSize()
- return the number of unique categories for 1 of N code
- Specified by:
- getNormalizedSize in interface AbleField
getInputTranslateTemplate
public AbleTranslateTemplate getInputTranslateTemplate()
- provide an input translate template for this field
if the field is an input field, create a one of N code
if it is an output field, create a one of N code
if it is marked ignore, then ignore it
if field only contains 2 discrete values, treat it as a single binary template
- Specified by:
- getInputTranslateTemplate in interface AbleField
- Returns:
- the fully configured translate template
getOutputTranslateTemplate
public AbleTranslateTemplate getOutputTranslateTemplate()
- provide an output translate template for this field
- Specified by:
- getOutputTranslateTemplate in interface AbleField
- Returns:
- the fully configured translate template if fieldname = "predicted"
null otherwise
setColumn
public void setColumn(int col)
- Specified by:
- setColumn in interface AbleField
getColumn
public int getColumn()
- Specified by:
- getColumn in interface AbleField
getDataTypeString
public java.lang.String getDataTypeString()
- Specified by:
- getDataTypeString in interface AbleField
getUsageString
public java.lang.String getUsageString()
- Specified by:
- getUsageString in interface AbleField
ABLE: Produced by Joe, Don, and Jeff who say, 'Thanks for your support.'