com.graphbuilder.math.func
Class LogFunction

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

public class LogFunction
extends java.lang.Object
implements Function

The log function.


Constructor Summary
LogFunction()
           
 
Method Summary
 boolean acceptNumParam(int numParam)
          Returns true only for 1 or 2 parameters, false otherwise.
 double of(double[] d, int numParam)
          If the number of parameters specified is 1, then the log base 10 is taken of the value at index location 0.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogFunction

public LogFunction()
Method Detail

of

public double of(double[] d,
                 int numParam)
If the number of parameters specified is 1, then the log base 10 is taken of the value at index location 0. If the number of parameters specified is 2, then the base value is at index location 1.

Specified by:
of in interface Function

acceptNumParam

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

Specified by:
acceptNumParam in interface Function

toString

public java.lang.String toString()