Class SingleDPMatrix

  • All Implemented Interfaces:
    java.io.Serializable, DPMatrix

    public class SingleDPMatrix
    extends java.lang.Object
    implements DPMatrix, java.io.Serializable
    The dynamic programming matrix for a single sequence.
    Author:
    Matthew Pocock, Lukas Kall
    See Also:
    Serialized Form
    • Field Detail

      • states

        protected final State[] states
      • scores

        public final double[][] scores
      • score

        protected double score
    • Constructor Detail

      • SingleDPMatrix

        public SingleDPMatrix​(DP dp,
                              SymbolList symList)
    • Method Detail

      • getScore

        public double getScore()
        Specified by:
        getScore in interface DPMatrix
      • setScore

        public void setScore​(double score)
      • getCell

        public double getCell​(int[] index)
                       throws java.lang.IndexOutOfBoundsException
        Specified by:
        getCell in interface DPMatrix
        Throws:
        java.lang.IndexOutOfBoundsException