org.biojava.bio.dp.onehead
Class SingleDPMatrix

java.lang.Object
  extended byorg.biojava.bio.dp.onehead.SingleDPMatrix
All Implemented Interfaces:
DPMatrix, java.io.Serializable

public class SingleDPMatrix
extends java.lang.Object
implements DPMatrix, java.io.Serializable

The dynamic programming matrix for a single sequence.

Author:
Matthew Pocock
See Also:
Serialized Form

Field Summary
 double[][] scores
           
 
Constructor Summary
SingleDPMatrix(DP dp, SymbolList symList)
           
 
Method Summary
 double getCell(int[] index)
           
 double getScore()
           
 MarkovModel model()
           
 State[] states()
           
 SymbolList[] symList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scores

public final double[][] scores
Constructor Detail

SingleDPMatrix

public SingleDPMatrix(DP dp,
                      SymbolList symList)
Method Detail

states

public State[] states()
Specified by:
states in interface DPMatrix

model

public MarkovModel model()
Specified by:
model in interface DPMatrix

symList

public SymbolList[] symList()
Specified by:
symList in interface DPMatrix

getScore

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

getCell

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