com.graphbuilder.math.func
Class PowFunction

java.lang.Object
  extended bycom.graphbuilder.math.func.PowFunction
All Implemented Interfaces:
Function

public class PowFunction
extends java.lang.Object
implements Function

The power function.

See Also:
Math.pow(double,double)

Constructor Summary
PowFunction()
           
 
Method Summary
 boolean acceptNumParam(int numParam)
          Returns true only for 2 parameters, false otherwise.
 double of(double[] d, int numParam)
          Returns the value at index location 0 to the exponent of the value at index location 1.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PowFunction

public PowFunction()
Method Detail

of

public double of(double[] d,
                 int numParam)
Returns the value at index location 0 to the exponent of the value at index location 1.

Specified by:
of in interface Function

acceptNumParam

public boolean acceptNumParam(int numParam)
Returns true only for 2 parameters, false otherwise.

Specified by:
acceptNumParam in interface Function

toString

public java.lang.String toString()