|
|||||||||
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.TwoInputFunction
geneticWedge.gp.function.MultiplicationFunction
public class MultiplicationFunction
MultiplicationFunction is a Function that takes 2 inputs and outputs their product as an output.
Constructor Summary | |
---|---|
MultiplicationFunction()
constructor |
Method Summary | |
---|---|
double |
getOutput(double[] input)
getOutput() throws InvalidInputSizeException if the length of the input array is not 2. |
boolean |
isCommutative()
Returns true |
java.lang.String |
toString()
Returns a String representation of a MultiplicationFunction object ('×'). |
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 MultiplicationFunction()
Method Detail |
---|
public double getOutput(double[] input) throws InvalidInputSizeException
getOutput
in class Function
InvalidInputSizeException
public java.lang.String toString()
toString
in class Function
public boolean isCommutative()
isCommutative
in class TwoInputFunction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |