Class Function

java.lang.Object
com.datalogics.PDFL.Function
Direct Known Subclasses:
ExponentialFunction, NamedFunction, PostScriptCalculatorFunction

public class Function extends Object
A function is a process. A function takes input values and manipulates them to create output values.
  • Field Details

    • DEFAULT

      public static final Function DEFAULT
    • IDENTITY

      public static final Function IDENTITY
  • Method Details

    • delete

      public void delete()
    • toString

      public String toString()
      Convert the function to a displayable string.
      Overrides:
      toString in class Object
    • getDomain

      public List<Double> getDomain()
      The domain of the function. 2 * m elements, where m is the number of inputs to the function.

      Each successive pair of elements gives the minimum and maximum values for one of the inputs.

      Input values to the function are clamped to these minimum and maximum values.

    • setDomain

      public void setDomain(List<Double> domain)
      The domain of the function. 2 * m elements, where m is the number of inputs to the function.

      Each successive pair of elements gives the minimum and maximum values for one of the inputs.

      Input values to the function are clamped to these minimum and maximum values.

    • getRange

      public List<Double> getRange()
      The range of the function. 2 * n elements, where n is the number of outputs from the function.

      Each successive pair of elements gives the minimum and maximum values for one of the outputs.

      Output values from the function are clamped to these minimum and maximum values.

    • setRange

      public void setRange(List<Double> range)
      The range of the function. 2 * n elements, where n is the number of outputs from the function.

      Each successive pair of elements gives the minimum and maximum values for one of the outputs.

      Output values from the function are clamped to these minimum and maximum values.

    • getNInputs

      public int getNInputs()
      The number of inputs to the function.
    • getNOutputs

      public int getNOutputs()
      The number of outputs from the function.
    • apply

      public List<Double> apply(List<Double> args)
      Apply the function to supplied input values

      Parameters:
      args - input values for the function. The number of input values must agree with the number of inputs the function takes.
      Returns:
      a list of the result values from the function