Class Mult

java.lang.Object
org.opt4j.operator.algebra.Mult
All Implemented Interfaces:
Term

public class Mult extends Object implements Term
The Mult term multiplies multiple Terms.
  • Field Details

    • terms

      protected final Term[] terms
  • Constructor Details

    • Mult

      public Mult(Term... terms)
      Constructs an Mult term.
      Parameters:
      terms - the terms to be multiplied
  • Method Details

    • calculate

      public double calculate(double... values)
      Description copied from interface: Term
      Calculates the result of this Term.
      Specified by:
      calculate in interface Term
      Parameters:
      values - the values
      Returns:
      the result