geneticWedge.gp.function
Class UnipolarSigmoidFunction

java.lang.Object
  extended by geneticWedge.gp.Component
      extended by geneticWedge.gp.function.Function
          extended by geneticWedge.gp.function.OneInputFunction
              extended by geneticWedge.gp.function.UnipolarSigmoidFunction

public class UnipolarSigmoidFunction
extends OneInputFunction

UnpolarSigmoidFunction is a unary function commonly used in Artificial Neural Networks. It is also known as a 'logistic' function.


Constructor Summary
UnipolarSigmoidFunction()
          constructor
 
Method Summary
 double getOutput(double[] input)
          getOutput() throws InvalidInputSizeException if the length of the input array is not 1.
 java.lang.String toString()
          Returns a String representation of an UnipolarSigmoidFunction object ('uniSig').
 
Methods inherited from class geneticWedge.gp.function.Function
getComplexity, getNoOfInputs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnipolarSigmoidFunction

public UnipolarSigmoidFunction()
constructor

Method Detail

getOutput

public double getOutput(double[] input)
                 throws InvalidInputSizeException
getOutput() throws InvalidInputSizeException if the length of the input array is not 1.

Specified by:
getOutput in class Function
Throws:
InvalidInputSizeException

toString

public java.lang.String toString()
Returns a String representation of an UnipolarSigmoidFunction object ('uniSig').

Specified by:
toString in class Function