com.rapidminer.generator
Class TrigonometricFunctionGenerator

java.lang.Object
  extended by com.rapidminer.generator.FeatureGenerator
      extended by com.rapidminer.generator.SingularNumericalGenerator
          extended by com.rapidminer.generator.TrigonometricFunctionGenerator

public class TrigonometricFunctionGenerator
extends SingularNumericalGenerator

This class has one numerical input attribute and one output attribute. Depending on the mode specified in the constructor the result will be the sinus, cosinus, tangens, arc sinus, arc cosinus, or arc tangens.

Author:
Ingo Mierswa ingomierswa Exp $

Field Summary
static int ARC_TANGENS
           
static int COSINUS
           
static int SINUS
           
static int TANGENS
           
 
Fields inherited from class com.rapidminer.generator.FeatureGenerator
resultAttributes, SELECTION_MODE_ALL, SELECTION_MODE_RESTRICTIVE
 
Constructor Summary
TrigonometricFunctionGenerator()
           
TrigonometricFunctionGenerator(int mode)
           
 
Method Summary
 double calculateValue(double value)
          Subclasses have to implement this method to calculate the function result.
 boolean equals(java.lang.Object o)
          A FeatureGenerator equals another FeatureGenerator if its class is equal and its arguments are equal and its function names are equal.
 java.lang.String getFunction()
          Sets the function name.
 int hashCode()
           
 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.SingularNumericalGenerator
generate, getInputAttributes, getInputCandidates, getOutputAttributes, toString
 
Methods inherited from class com.rapidminer.generator.FeatureGenerator
argumentsSet, checkCompatibility, createGeneratorForFunction, generateAll, getArgument, getExampleTable, getSelectionMode, selectGenerator, setArguments, setExampleTable, setSelectionMode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SINUS

public static final int SINUS
See Also:
Constant Field Values

COSINUS

public static final int COSINUS
See Also:
Constant Field Values

TANGENS

public static final int TANGENS
See Also:
Constant Field Values

ARC_TANGENS

public static final int ARC_TANGENS
See Also:
Constant Field Values
Constructor Detail

TrigonometricFunctionGenerator

public TrigonometricFunctionGenerator(int mode)

TrigonometricFunctionGenerator

public TrigonometricFunctionGenerator()
Method Detail

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 value)
Description copied from class: SingularNumericalGenerator
Subclasses have to implement this method to calculate the function result.

Specified by:
calculateValue in class SingularNumericalGenerator

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

equals

public boolean equals(java.lang.Object o)
Description copied from class: FeatureGenerator
A FeatureGenerator equals another FeatureGenerator if its class is equal and its arguments are equal and its function names are equal.

Overrides:
equals in class FeatureGenerator

hashCode

public int hashCode()
Overrides:
hashCode in class FeatureGenerator


Copyright © 2001-2009 by Rapid-I