Class AbsFunction

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

public class AbsFunction extends Object implements Function
The absolute function.
See Also:
  • Constructor Details

    • AbsFunction

      public AbsFunction()
  • Method Details

    • of

      public double of(double[] d, int numParam)
      Returns the positive value of the value stored at index location 0.
      Specified by:
      of in interface Function
    • acceptNumParam

      public boolean acceptNumParam(int numParam)
      Returns true only for 1 parameter, false otherwise.
      Specified by:
      acceptNumParam in interface Function
    • toString

      public String toString()
      Overrides:
      toString in class Object