Interface Term

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

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 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 set 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 set of variables used in this term.
      Returns:
      the set of variables used in this term.
    • expand

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