com.rapidminer.operator.preprocessing.filter
Class NumericToBinominal

java.lang.Object
  extended by com.rapidminer.operator.Operator
      extended by com.rapidminer.operator.AbstractExampleSetProcessing
          extended by com.rapidminer.operator.preprocessing.AbstractDataProcessing
              extended by com.rapidminer.operator.preprocessing.filter.NumericToNominal
                  extended by com.rapidminer.operator.preprocessing.filter.NumericToBinominal
All Implemented Interfaces:
ConfigurationListener, PreviewListener, ParameterHandler, LoggingHandler

public class NumericToBinominal
extends NumericToNominal

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.

Author:
Sebastian Land, Ingo Mierswa, Shevek

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
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.
protected  Attribute makeAttribute()
           
protected  void setValue(Example example, Attribute newAttribute, double value)
           
 
Methods inherited from class com.rapidminer.operator.preprocessing.filter.NumericToNominal
apply, cleanUp, init
 
Methods inherited from class com.rapidminer.operator.AbstractExampleSetProcessing
apply, getInputClasses, getOutputClasses
 
Methods inherited from class com.rapidminer.operator.Operator
addError, addValue, addWarning, apply, checkDeprecations, checkForStop, checkIO, checkProperties, clearErrorList, cloneOperator, createExperimentTree, createExperimentTree, createFromXML, createMarkedExperimentTree, createMarkedProcessTree, createProcessTree, createProcessTree, getAddOnlyAdditionalOutput, getApplyCount, getDeliveredOutputClasses, getDeprecationInfo, getDesiredInputClasses, getEncoding, getErrorList, getExperiment, getInnerOperatorsXML, getInput, getInput, getInput, getInputDescription, getIOContainerForInApplyLoopBreakpoint, getIODescription, getLog, getName, getOperatorClassName, getOperatorDescription, getParameter, getParameterAsBoolean, getParameterAsColor, getParameterAsDouble, getParameterAsFile, getParameterAsFile, getParameterAsInputStream, getParameterAsInt, getParameterAsMatrix, getParameterAsString, getParameterList, getParameters, getParameterType, getParent, getProcess, getStartTime, getStatus, getUserDescription, getValue, getValues, getXML, hasBreakpoint, hasBreakpoint, hasInput, inApplyLoop, isDebugMode, isEnabled, isExpanded, isParallel, isParameterSet, log, logError, logNote, logWarning, performAdditionalChecks, processFinished, processStarts, register, registerOperator, remove, rename, resume, setApplyCount, setBreakpoint, setEnabled, setExpanded, setInput, setListParameter, setOperatorParameters, setParameter, setParameters, setParent, setUserDescription, toString, unregisterOperator, writeXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PARAMETER_MIN

public static final java.lang.String PARAMETER_MIN
The parameter name for "The minimal value which is mapped to false (included)."

See Also:
Constant Field Values

PARAMETER_MAX

public static final java.lang.String PARAMETER_MAX
The parameter name for "The maximal value which is mapped to false (included)."

See Also:
Constant Field Values
Constructor Detail

NumericToBinominal

public NumericToBinominal(OperatorDescription description)
Method Detail

setValue

protected void setValue(Example example,
                        Attribute newAttribute,
                        double value)
                 throws OperatorException
Specified by:
setValue in class NumericToNominal
Throws:
OperatorException

getParameterTypes

public java.util.List<ParameterType> getParameterTypes()
Description copied from class: Operator
Returns a list of ParameterTypes describing the parameters of this operator. The default implementation returns an empty list if no input objects can be retained and special parameters for those input objects which can be prevented from being consumed.

Specified by:
getParameterTypes in interface ParameterHandler
Overrides:
getParameterTypes in class Operator

getGeneratedAttributevalueType

protected int getGeneratedAttributevalueType()
Description copied from class: NumericToNominal
Returns Ontology.NOMINAL or one of its subtypes.

Specified by:
getGeneratedAttributevalueType in class NumericToNominal

makeAttribute

protected Attribute makeAttribute()
Overrides:
makeAttribute in class NumericToNominal


Copyright © 2001-2009 by Rapid-I