Interface Term

All Superinterfaces:
Serializable
All Known Implementing Classes:
Abs, AbstractBiFunction, AbstractFunction, Add, Constant, Date, Div, DoubleFunction, FactorCrossing, FactorInteraction, IntFunction, Mul, Operator, Sub

public interface Term extends Serializable
An abstract term in the formula. A term is recursively constructed from constant symbols, variables and function symbols. A formula consists of a series of terms. To be concise, we also allow HyperTerms that can be can be expanded to multiple simple terms.
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(StructType schema)
    Binds the term to a schema.
    default List<Term>
    Expands the term (e.g.
    Returns the list of variables used in this term.
  • Method Details

    • bind

      List<Feature> bind(StructType schema)
      Binds the term to a schema.
      Parameters:
      schema - the schema to bind the term with.
      Returns:
      the feature list.
    • variables

      Set<String> variables()
      Returns the list of variables used in this term.
      Returns:
      the list of variables used in this term.
    • expand

      default List<Term> expand()
      Expands the term (e.g. FactorCrossing).
      Returns:
      the expanded terms.