com.rapidminer.example.table
Class BinominalAttribute

java.lang.Object
  extended by com.rapidminer.example.table.AbstractAttribute
      extended by com.rapidminer.example.table.NominalAttribute
          extended by com.rapidminer.example.table.BinominalAttribute
All Implemented Interfaces:
Attribute, java.io.Serializable, java.lang.Cloneable

public class BinominalAttribute
extends NominalAttribute

This class holds all information on a single binary attribute. In addition to the generic attribute fields this class keeps information about the both values and the value to index mappings. If one of the methods designed for numerical attributes was invoked a RuntimeException will be thrown.

Author:
Ingo Mierswa
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.rapidminer.example.Attribute
MISSING_NOMINAL_VALUE, UNDEFINED_ATTRIBUTE_INDEX, VIEW_ATTRIBUTE_INDEX
 
Method Summary
 java.lang.Object clone()
          Clones this attribute.
 NominalMapping getMapping()
          Returns the nominal mapping between nominal values and internal double representations.
 void setMapping(NominalMapping newMapping)
          Returns the nominal mapping between nominal values and internal double representations.
 
Methods inherited from class com.rapidminer.example.table.NominalAttribute
getAsString, isNominal, isNumerical
 
Methods inherited from class com.rapidminer.example.table.AbstractAttribute
addOwner, addTransformation, clearTransformations, equals, getAllStatistics, getBlockType, getConstruction, getDefault, getLastTransformation, getName, getStatistics, getStatistics, getTableIndex, getValue, getValueType, hashCode, readResolve, registerStatistics, removeOwner, setBlockType, setConstruction, setDefault, setName, setTableIndex, setValue, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

clone

public java.lang.Object clone()
Clones this attribute.

Specified by:
clone in interface Attribute
Specified by:
clone in class AbstractAttribute

getMapping

public NominalMapping getMapping()
Description copied from interface: Attribute
Returns the nominal mapping between nominal values and internal double representations. Please note that invoking this method might result in an exception for non-nominal attributes.


setMapping

public void setMapping(NominalMapping newMapping)
Description copied from interface: Attribute
Returns the nominal mapping between nominal values and internal double representations. Please note that invoking this method might result in an exception for non-nominal attributes.



Copyright © 2001-2009 by Rapid-I