Class AbstractBiFunction

java.lang.Object
smile.data.formula.AbstractBiFunction
All Implemented Interfaces:
Serializable, Term
Direct Known Subclasses:
Operator

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

    • AbstractBiFunction

      public AbstractBiFunction(String name, Term x, Term y)
      Constructor.
      Parameters:
      name - the function name.
      x - the first parameter of function.
      y - the second parameter of function.
  • 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.