com.rapidminer.generator
Class AlgebraicOrGenerator

java.lang.Object
  extended by com.rapidminer.generator.FeatureGenerator
      extended by com.rapidminer.generator.BinaryNumericalGenerator
          extended by com.rapidminer.generator.AlgebraicOrGenerator

public class AlgebraicOrGenerator
extends BinaryNumericalGenerator

This class has two numerical input attributes and one output attribute. The result will be the algebraic or (s-norm) of the input attributes.

Author:
Ingo Mierswa Exp $

Field Summary
 
Fields inherited from class com.rapidminer.generator.FeatureGenerator
resultAttributes, SELECTION_MODE_ALL, SELECTION_MODE_RESTRICTIVE
 
Constructor Summary
AlgebraicOrGenerator()
           
 
Method Summary
 double calculateValue(double value1, double value2)
           
 java.lang.String getFunction()
          Sets the function name.
 Attribute[] getOutputAttributes(ExampleTable input)
          Returns the generated attributes types.
 boolean isCommutative()
          Must return true if this generator is commutative.
 boolean isSelfApplicable()
          Must return true if this generator is self applicable.
 FeatureGenerator newInstance()
          Subclasses must implement this method so that a new instance of this generator class is returned.
 void setFunction(java.lang.String name)
          Sets the function name.
 
Methods inherited from class com.rapidminer.generator.BinaryNumericalGenerator
generate, getInputAttributes, getInputCandidates, toString
 
Methods inherited from class com.rapidminer.generator.FeatureGenerator
argumentsSet, checkCompatibility, createGeneratorForFunction, equals, generateAll, getArgument, getExampleTable, getSelectionMode, hashCode, selectGenerator, setArguments, setExampleTable, setSelectionMode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlgebraicOrGenerator

public AlgebraicOrGenerator()
Method Detail

getOutputAttributes

public Attribute[] getOutputAttributes(ExampleTable input)
Description copied from class: FeatureGenerator
Returns the generated attributes types.

Overrides:
getOutputAttributes in class BinaryNumericalGenerator

isSelfApplicable

public boolean isSelfApplicable()
Description copied from class: BinaryNumericalGenerator
Must return true if this generator is self applicable.

Specified by:
isSelfApplicable in class BinaryNumericalGenerator

isCommutative

public boolean isCommutative()
Description copied from class: BinaryNumericalGenerator
Must return true if this generator is commutative.

Specified by:
isCommutative in class BinaryNumericalGenerator

newInstance

public FeatureGenerator newInstance()
Description copied from class: FeatureGenerator
Subclasses must implement this method so that a new instance of this generator class is returned. The arguments and the example table will not be cloned and thus be null. This kind of clone is needed as generating algorithms must be able to clone generators form their pool without changing the arguments already set for the others.

Specified by:
newInstance in class FeatureGenerator

calculateValue

public double calculateValue(double value1,
                             double value2)
Specified by:
calculateValue in class BinaryNumericalGenerator

setFunction

public void setFunction(java.lang.String name)
Description copied from class: FeatureGenerator
Sets the function name. This method is only useful if subclasses can generate more than one function. (like the BasicArithmeticOperationGenerator).

Specified by:
setFunction in class FeatureGenerator

getFunction

public java.lang.String getFunction()
Description copied from class: FeatureGenerator
Sets the function name. This method is only useful if subclasses can generate more than one function. (like the BasicArithmeticOperationGenerator).

Specified by:
getFunction in class FeatureGenerator


Copyright © 2001-2009 by Rapid-I