|
||||||||||
| 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.ViewAttribute
public class ViewAttribute
A view attribute is based on a ViewModel (Preprocessing Model) and applies the model on the fly.
| Field Summary |
|---|
| Fields inherited from interface com.rapidminer.example.Attribute |
|---|
MISSING_NOMINAL_VALUE, UNDEFINED_ATTRIBUTE_INDEX, VIEW_ATTRIBUTE_INDEX |
| Constructor Summary | |
|---|---|
ViewAttribute(ViewModel model,
Attribute parent,
java.lang.String name,
int valueType,
NominalMapping mapping)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones this attribute. |
java.lang.String |
getAsString(double value,
int numberOfDigits,
boolean quoteNominal)
Returns a formatted string of the given value according to the attribute type. |
NominalMapping |
getMapping()
Returns the nominal mapping between nominal values and internal double representations. |
int |
getTableIndex()
Returns the index in the example table. |
double |
getValue(DataRow row)
Returns the value for the column this attribute corresponds to in the given data row. |
boolean |
isNominal()
Returns true if the attribute is nominal. |
boolean |
isNumerical()
Returns true if the attribute is nominal. |
void |
setMapping(NominalMapping nominalMapping)
Returns the nominal mapping between nominal values and internal double representations. |
| Methods inherited from class com.rapidminer.example.table.AbstractAttribute |
|---|
addOwner, addTransformation, clearTransformations, equals, getAllStatistics, getAnnotations, getBlockType, getConstruction, getDefault, getLastTransformation, getName, getStatistics, getStatistics, getValueType, hashCode, registerStatistics, removeOwner, setBlockType, setConstruction, setDefault, setName, setTableIndex, setValue, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ViewAttribute(ViewModel model,
Attribute parent,
java.lang.String name,
int valueType,
NominalMapping mapping)
| Method Detail |
|---|
public double getValue(DataRow row)
Attribute
getValue in interface AttributegetValue in class AbstractAttributepublic java.lang.Object clone()
AbstractAttribute
clone in interface Attributeclone in class AbstractAttribute
public java.lang.String getAsString(double value,
int numberOfDigits,
boolean quoteNominal)
Attribute
public NominalMapping getMapping()
AttributeUnsupportedOperationException for
non-nominal attributes.
public boolean isNominal()
Attribute
public boolean isNumerical()
Attribute
public void setMapping(NominalMapping nominalMapping)
Attribute
public int getTableIndex()
AbstractAttribute
getTableIndex in interface AttributegetTableIndex in class AbstractAttribute
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||