|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.example.table.AbstractAttribute
com.rapidminer.example.table.NominalAttribute
com.rapidminer.example.table.PolynominalAttribute
public class PolynominalAttribute
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.
| 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 |
|---|
public java.lang.Object clone()
clone in interface Attributeclone in class AbstractAttributepublic NominalMapping getMapping()
Attribute
public void setMapping(NominalMapping newMapping)
Attribute
public java.lang.String toString()
AbstractAttribute
toString in interface AttributetoString in class AbstractAttribute
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||