|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.epochx.representation.Node<TYPE>
com.epochx.representation.FunctionNode<java.lang.Double>
com.epochx.representation.dbl.CubeFunction
public class CubeFunction
A FunctionNode which performs the arithmetic function of cube,
that is - raising to the third power. It is equivalent to the
PowerFunction where the second child is the double literal 3.0.
| Constructor Summary | |
|---|---|
CubeFunction()
Construct a CubeFunction with no children. |
|
CubeFunction(Node<java.lang.Double> child)
Construct a CubeFunction with one child. |
|
| Method Summary | |
|---|---|
java.lang.Double |
evaluate()
Evaluating a CubeFunction involves evaluating the child
then raising the result to the power of 3. |
java.lang.String |
getFunctionName()
Get the unique name that identifies this function. |
| Methods inherited from class com.epochx.representation.FunctionNode |
|---|
equals, toString |
| Methods inherited from class com.epochx.representation.Node |
|---|
clone, getArity, getChild, getChildren, getDepth, getFunctionNodes, getLength, getNodesAtDepth, getNoDistinctFunctions, getNoDistinctTerminals, getNoFunctions, getNoTerminals, getNthNode, getTerminalNodes, hashCode, setChild, setChildren, setNthNode |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CubeFunction()
public CubeFunction(Node<java.lang.Double> child)
child - The child which will be cubed.| Method Detail |
|---|
public java.lang.Double evaluate()
CubeFunction involves evaluating the child
then raising the result to the power of 3.
evaluate in class Node<java.lang.Double>public java.lang.String getFunctionName()
getFunctionName in class FunctionNode<java.lang.Double>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||