org.biojava.bio.dp.onehead
Class SingleDPMatrix
java.lang.Object
org.biojava.bio.dp.onehead.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
states
protected final State[] states
model
protected final MarkovModel model
symList
protected final SymbolList[] symList
scores
public final double[][] scores
score
protected double score
SingleDPMatrix
public SingleDPMatrix(DP dp,
SymbolList symList)
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
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