|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectgeneticWedge.gp.Component
geneticWedge.gp.function.Function
geneticWedge.gp.function.OneInputFunction
geneticWedge.gp.function.NOTFunction
public class NOTFunction
NOTFunction is a unary function that returns true if its input is less than or equal to zero, -1 otherwise. It is functionally equivalent to LESS_THAN_EQUAL_ZEROFunction
Constructor Summary | |
---|---|
NOTFunction()
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 a NOTFunction object ('NOT'). |
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 |
---|
public NOTFunction()
Method Detail |
---|
public double getOutput(double[] input) throws InvalidInputSizeException
getOutput
in class Function
InvalidInputSizeException
public java.lang.String toString()
toString
in class Function
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |