com.rapidminer.example.table
Class PolynominalAttribute

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

public class PolynominalAttribute
extends NominalAttribute

This class holds all information on a single nominal attribute. In addition to the generic attribute fields this class keeps information about the nominal values and the value to index mappings. If one of the methods designed for numerical attributes was invoked a RuntimeException will be thrown. It will be guaranteed that all values are mapped to indices without any missing values. This could, however, be changed in future versions thus operators should not rely on this fact. This class is one of the two available implementations of NominalAttribute available in RapidMiner. In contrast to the BinominalAttribute, which stores the possible values internally very efficient, this class allows an arbitrary number of nominal values and uses a PolynominalMapping for the internal representation mapping.

Author:
Ingo Mierswa Exp $
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.
 java.lang.String toString()
          Returns a human readable string that describes this attribute.
 
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
 
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.


toString

public java.lang.String toString()
Description copied from class: AbstractAttribute
Returns a human readable string that describes this attribute.

Specified by:
toString in interface Attribute
Overrides:
toString in class AbstractAttribute


Copyright © 2001-2009 by Rapid-I