|
||||||||||
| 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.NumericalAttribute
public class NumericalAttribute
This class holds all information on a single numerical attribute. In addition to the information of the superclass this is some statistics data like minimum, maximum and average of the values.
| Field Summary | |
|---|---|
static int |
DEFAULT_NUMBER_OF_DIGITS
Indicates the default number of fraction digits which is defined by the system property rapidminer.gui.fractiondigits.numbers. |
static int |
UNLIMITED_NUMBER_OF_DIGITS
Indicates an unlimited number of fraction digits. |
| 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. |
java.lang.String |
getAsString(double value,
int numberOfDigits,
boolean quoteNominal)
Returns a string representation of value. |
NominalMapping |
getMapping()
Returns the nominal mapping between nominal values and internal double representations. |
boolean |
isNominal()
Returns true if the attribute is nominal. |
boolean |
isNumerical()
Returns true if the attribute is nominal. |
void |
setMapping(NominalMapping mapping)
Does nothing. |
| 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 |
| Field Detail |
|---|
public static final int DEFAULT_NUMBER_OF_DIGITS
public static final int UNLIMITED_NUMBER_OF_DIGITS
| Method Detail |
|---|
public java.lang.Object clone()
clone in interface Attributeclone in class AbstractAttributepublic boolean isNominal()
Attribute
public boolean isNumerical()
Attribute
public NominalMapping getMapping()
Attribute
public void setMapping(NominalMapping mapping)
public java.lang.String getAsString(double value,
int numberOfDigits,
boolean quoteNominal)
Tools in case of DEFAULT_NUMBER_OF_DIGITS
or an unlimited number of digits in case of UNLIMITED_NUMBER_OF_DIGITS.
For the value NaN a "?" will be returned.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||