Class SmallCursor

  • All Implemented Interfaces:
    DPCursor

    public class SmallCursor
    extends Object
    Constant-memory implementation of single-head DP cursor.
    Author:
    Matthew Pocock
    • Method Detail

      • length

        public int length()
        Description copied from interface: DPCursor

        The length of the sequence.

        The matrix may allocate length+1 columns.

      • currentCol

        public double[] currentCol()
        Description copied from interface: DPCursor
        The current column of the matrix.
      • lastCol

        public double[] lastCol()
        Description copied from interface: DPCursor
        The previous column.
      • lastRes

        public Symbol lastRes()
        Description copied from interface: DPCursor
        The previous symbol.
        Specified by:
        lastRes in interface DPCursor
      • canAdvance

        public boolean canAdvance()
        Description copied from interface: DPCursor
        Can we advance?
        Specified by:
        canAdvance in interface DPCursor