|
||||||||||
| 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.PowerFunction
public class PowerFunction
A FunctionNode which performs the mathematical operation of
exponentiation.
| Constructor Summary | |
|---|---|
PowerFunction()
Construct a PowerFunction with no children. |
|
PowerFunction(Node<java.lang.Double> base,
Node<java.lang.Double> exponent)
Construct a PowerFunction with 2 children. |
|
| Method Summary | |
|---|---|
java.lang.Double |
evaluate()
Evaluating a PowerFunction involves raising the first child
to the power of the second, after both children are evaluated. |
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 PowerFunction()
public PowerFunction(Node<java.lang.Double> base,
Node<java.lang.Double> exponent)
base - The first child node - the base.exponent - The second child node - the exponent.| Method Detail |
|---|
public java.lang.Double evaluate()
PowerFunction involves raising the first child
to the power of the second, after both children are evaluated.
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 | |||||||||