Class LogFunction

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

public class LogFunction extends Object implements Function
The log function.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • LogFunction

      public LogFunction()
  • Method Details

    • 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 String toString()
      Overrides:
      toString in class Object