|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.operator.Operator
com.rapidminer.operator.AbstractExampleSetProcessing
com.rapidminer.operator.preprocessing.AbstractDataProcessing
com.rapidminer.operator.preprocessing.filter.ValueReplenishment
public abstract class ValueReplenishment
Abstract superclass for all operators that replenish values, e.g. nan or infinite values.
| Field Summary | |
|---|---|
static java.lang.String |
PARAMETER_COLUMNS
The parameter name for "List of replacement functions for each column. |
static java.lang.String |
PARAMETER_DEFAULT
The parameter name for "Function to apply to all columns that are not explicitly specified by parameter 'columns'. |
static java.lang.String |
PARAMETER_REPLENISHMENT_VALUE
The parameter name for "This value is used for some of the replenishment types. |
| Constructor Summary | |
|---|---|
ValueReplenishment(OperatorDescription description)
|
|
| Method Summary | |
|---|---|
ExampleSet |
apply(ExampleSet eSet)
Iterates over all examples and all attributes makes callbacks to getReplenishmentValue(int, ExampleSet, Attribute, double, String) if
replenishValue(double) returns true. |
abstract int |
getDefaultColumnFunction()
Returns the index of the replenishment function which will be used for attributes listed in the parameter list "columns". |
abstract int |
getDefaultFunction()
Returns the index of the replenishment function which will be used for attributes not listed in the parameter list "columns". |
abstract java.lang.String[] |
getFunctionNames()
Returns an array of all replenishment functions. |
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of this operator. |
abstract double |
getReplenishmentValue(int functionIndex,
ExampleSet baseExampleSet,
Attribute attribute,
double currentValue,
java.lang.String valueString)
Returns the value of the replenishment function with the given index. |
abstract boolean |
replenishValue(double currentValue)
Returns true iff the value should be replenished. |
| Methods inherited from class com.rapidminer.operator.AbstractExampleSetProcessing |
|---|
apply, getInputClasses, getOutputClasses |
| 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_DEFAULT
public static final java.lang.String PARAMETER_COLUMNS
public static final java.lang.String PARAMETER_REPLENISHMENT_VALUE
| Constructor Detail |
|---|
public ValueReplenishment(OperatorDescription description)
| Method Detail |
|---|
public abstract boolean replenishValue(double currentValue)
public abstract double getReplenishmentValue(int functionIndex,
ExampleSet baseExampleSet,
Attribute attribute,
double currentValue,
java.lang.String valueString)
public abstract java.lang.String[] getFunctionNames()
public abstract int getDefaultFunction()
public abstract int getDefaultColumnFunction()
public ExampleSet apply(ExampleSet eSet)
throws OperatorException
getReplenishmentValue(int, ExampleSet, Attribute, double, String) if
replenishValue(double) returns true.
apply in class AbstractExampleSetProcessingOperatorExceptionpublic java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes in interface ParameterHandlergetParameterTypes in class Operator
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||