Package org.biojava.bio.dp.onehead
Class SingleDPMatrix
- java.lang.Object
-
- org.biojava.bio.dp.onehead.SingleDPMatrix
-
- All Implemented Interfaces:
Serializable,DPMatrix
public class SingleDPMatrix extends Object implements DPMatrix, Serializable
The dynamic programming matrix for a single sequence.- Author:
- Matthew Pocock, Lukas Kall
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected MarkovModelmodelprotected doublescoredouble[][]scoresprotected State[]statesprotected SymbolList[]symList
-
Constructor Summary
Constructors Constructor Description SingleDPMatrix(DP dp, SymbolList symList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetCell(int[] index)doublegetScore()MarkovModelmodel()voidsetScore(double score)State[]states()SymbolList[]symList()
-
-
-
Field Detail
-
model
protected final MarkovModel model
-
symList
protected final SymbolList[] symList
-
scores
public final double[][] scores
-
score
protected double score
-
-
Constructor Detail
-
SingleDPMatrix
public SingleDPMatrix(DP dp, SymbolList symList)
-
-
Method Detail
-
model
public MarkovModel model()
-
symList
public SymbolList[] symList()
-
setScore
public void setScore(double score)
-
getCell
public double getCell(int[] index) throws IndexOutOfBoundsException
- Specified by:
getCellin interfaceDPMatrix- Throws:
IndexOutOfBoundsException
-
-