Class Index

  • All Implemented Interfaces:
    Term

    public class Index
    extends java.lang.Object
    implements Term
    The Index returns the i-th value of the values array of the calculate(double...) method.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int i  
    • Constructor Summary

      Constructors 
      Constructor Description
      Index​(int i)
      Constructs an Index.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double calculate​(double... values)
      Calculates the result of this Term.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • i

        protected final int i
    • Constructor Detail

      • Index

        public Index​(int i)
        Constructs an Index.
        Parameters:
        i - the array index
    • Method Detail

      • 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