Class AbstractFunction

java.lang.Object
smile.data.formula.AbstractFunction
All Implemented Interfaces:
Serializable, Term
Direct Known Subclasses:
Abs, DoubleFunction, IntFunction

public abstract class AbstractFunction extends Object implements Term
This class provides a skeletal implementation of the function term.
See Also:
  • Constructor Details

    • AbstractFunction

      public AbstractFunction(String name, Term x)
      Constructor.
      Parameters:
      name - the name of function.
      x - the term that the function is applied to.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • variables

      public Set<String> variables()
      Description copied from interface: Term
      Returns the set of variables used in this term.
      Specified by:
      variables in interface Term
      Returns:
      the set of variables used in this term.