geneticWedge.gp.function
Class OneInputFunction

java.lang.Object
  extended by geneticWedge.gp.Component
      extended by geneticWedge.gp.function.Function
          extended by geneticWedge.gp.function.OneInputFunction
Direct Known Subclasses:
BipolarSigmoidFunction, CosineFunction, ExponentialFunction, GREATER_THAN_EQUAL_ZEROFunction, GREATER_THAN_ZEROFunction, IdentityFunction, IFFunction, InverseFunction, LESS_THAN_EQUAL_ZEROFunction, LESS_THAN_ZEROFunction, LogFunction, NOTFunction, SineFunction, SqrtFunction, TanFunction, UnipolarSigmoidFunction

public abstract class OneInputFunction
extends Function

Abstract parent of all unary functions. Subclasses should throw an InvalidInputSizeException if the length of the array sent to getOutput() is not 1.


Constructor Summary
OneInputFunction()
          The constructor sets the number of inputs required to 1
OneInputFunction(int complexity)
          This constructor allows the creation of Functions with assigned complexity values, rather than the default values.
 
Method Summary
 
Methods inherited from class geneticWedge.gp.function.Function
getComplexity, getNoOfInputs, getOutput, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OneInputFunction

public OneInputFunction()
The constructor sets the number of inputs required to 1


OneInputFunction

public OneInputFunction(int complexity)
This constructor allows the creation of Functions with assigned complexity values, rather than the default values. This may be used to give priority to chosen functions (by giving them a low complexity value) in conjunction with the use of the FUNCTION_COMPLEXITY PerformanceFunction in Population.