|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.tools.AbstractObservable<Operator>
com.rapidminer.operator.Operator
com.rapidminer.operator.AbstractExampleSetProcessing
com.rapidminer.operator.preprocessing.AbstractDataProcessing
com.rapidminer.operator.preprocessing.filter.AbstractFilteredDataProcessing
com.rapidminer.operator.preprocessing.filter.NumericToNominal
com.rapidminer.operator.preprocessing.filter.NumericToBinominal
public class NumericToBinominal
Converts all numerical attributes to binary ones. If the value of an attribute is between the specified minimal and maximal value, it becomes false, otherwise true. If the value is missing, the new value will be missing. The default boundaries are both set to 0, thus only 0.0 is mapped to false and all other values are mapped to true.
| Field Summary | |
|---|---|
static java.lang.String |
PARAMETER_MAX
The parameter name for "The maximal value which is mapped to false (included). |
static java.lang.String |
PARAMETER_MIN
The parameter name for "The minimal value which is mapped to false (included). |
| Constructor Summary | |
|---|---|
NumericToBinominal(OperatorDescription description)
|
|
| Method Summary | |
|---|---|
ExampleSetMetaData |
applyOnFilteredMetaData(ExampleSetMetaData emd)
This method has to be implemented in order to specify the changes of the meta data caused by the application of this operator. |
protected int |
getGeneratedAttributevalueType()
Returns Ontology.NOMINAL or one of its subtypes. |
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of this operator. |
ResourceConsumptionEstimator |
getResourceConsumptionEstimator()
Subclasses can override this method if they are able to estimate the consumed resources (CPU time and memory), based on their input. |
protected Attribute |
makeAttribute()
|
protected void |
setValue(Example example,
Attribute newAttribute,
double value)
|
| Methods inherited from class com.rapidminer.operator.preprocessing.filter.NumericToNominal |
|---|
applyOnFiltered, cleanUp, getFilterValueTypes, init, writesIntoExistingData |
| Methods inherited from class com.rapidminer.operator.preprocessing.filter.AbstractFilteredDataProcessing |
|---|
apply, modifyMetaData |
| Methods inherited from class com.rapidminer.operator.AbstractExampleSetProcessing |
|---|
doWork, getExampleSetInputPort, getExampleSetOutputPort, getInputPort, getRequiredMetaData, shouldAutoConnect |
| Methods inherited from class com.rapidminer.tools.AbstractObservable |
|---|
addObserver, addObserverAsFirst, fireUpdate, removeObserver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PARAMETER_MIN
public static final java.lang.String PARAMETER_MAX
| Constructor Detail |
|---|
public NumericToBinominal(OperatorDescription description)
| Method Detail |
|---|
public ExampleSetMetaData applyOnFilteredMetaData(ExampleSetMetaData emd)
throws UndefinedParameterError
AbstractFilteredDataProcessing
applyOnFilteredMetaData in class NumericToNominalUndefinedParameterError
protected void setValue(Example example,
Attribute newAttribute,
double value)
throws OperatorException
setValue in class NumericToNominalOperatorExceptionpublic java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes in interface ParameterHandlergetParameterTypes in class AbstractFilteredDataProcessingprotected int getGeneratedAttributevalueType()
NumericToNominalOntology.NOMINAL or one of its subtypes.
getGeneratedAttributevalueType in class NumericToNominalprotected Attribute makeAttribute()
makeAttribute in class NumericToNominalpublic ResourceConsumptionEstimator getResourceConsumptionEstimator()
Operator
getResourceConsumptionEstimator in interface ResourceConsumergetResourceConsumptionEstimator in class Operator
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||