Class IntegerSequence.For

  • All Implemented Interfaces:
    IntegerSequence
    Enclosing interface:
    IntegerSequence

    public static class IntegerSequence.For
    extends java.lang.Object
    implements IntegerSequence
    A sequence of integers which has been specified using a start number, end number, and step size. 2:3:21 = 2 5 8 11 14 17 20
    • Constructor Detail

      • For

        public For​(org.ejml.equation.TokenList.Token start,
                   org.ejml.equation.TokenList.Token step,
                   org.ejml.equation.TokenList.Token end)
    • Method Detail

      • initialize

        public void initialize​(int maxIndex)
        Description copied from interface: IntegerSequence
        Specifies the maximum index of the array. If the maximum index is not known then a value < 0 is passed in and an exception should be thrown if this information is required NOTE: This is length - 1
        Specified by:
        initialize in interface IntegerSequence
        Parameters:
        maxIndex - Largest possible value in the sequence. or < 0 if unknown
      • getStart

        public int getStart()
      • getStep

        public int getStep()
      • getEnd

        public int getEnd()