public class SingleDP extends DP implements Serializable
DP.ReverseIterator
Modifier and Type | Field and Description |
---|---|
protected HashMap |
emissionsNull |
protected HashMap |
emissionsOdds |
protected HashMap |
emissionsProb |
Constructor and Description |
---|
SingleDP(MarkovModel model) |
Modifier and Type | Method and Description |
---|---|
protected void |
backward_initialize(DPCursor dpCursor,
ScoreType scoreType) |
protected void |
backward_recurse(DPCursor dpCursor,
ScoreType scoreType) |
protected double |
backward_termination(DPCursor dpCursor,
ScoreType scoreType) |
protected double |
backward(DPCursor dpCursor,
ScoreType scoreType) |
double |
backward(SymbolList[] seq,
ScoreType scoreType) |
DPMatrix |
backwardMatrix(SymbolList[] seq,
DPMatrix matrix,
ScoreType scoreType) |
DPMatrix |
backwardMatrix(SymbolList[] seq,
ScoreType scoreType) |
protected void |
forward_initialize(DPCursor dpCursor,
ScoreType scoreType) |
protected double |
forward(DPCursor dpCursor,
ScoreType scoreType) |
double |
forward(SymbolList[] seq,
ScoreType scoreType) |
DPMatrix |
forwardMatrix(SymbolList[] seq,
DPMatrix matrix,
ScoreType scoreType) |
DPMatrix |
forwardMatrix(SymbolList[] seq,
ScoreType scoreType) |
double[] |
getEmission(Symbol sym,
ScoreType scoreType)
This method is public for the benefit of training algorithms,
and in the future we should look at a better way of exposing
the emissions cache.
|
void |
update() |
StatePath |
viterbi(SymbolList[] symList,
ScoreType scoreType) |
backwardTransitions, backwardTransitionScores, flatView, forwardsBackwards, forwardTransitions, forwardTransitionScores, generate, getBackwardTransitions, getBackwardTransitionScores, getDotStatesIndex, getForwardTransitions, getForwardTransitionScores, getModel, getStates, lockModel, scoreWeightMatrix, scoreWeightMatrix, setModel, stateList, unlockModel
protected final HashMap emissionsProb
protected final HashMap emissionsOdds
protected final HashMap emissionsNull
public SingleDP(MarkovModel model) throws IllegalSymbolException, IllegalTransitionException, BioException
public double[] getEmission(Symbol sym, ScoreType scoreType) throws IllegalSymbolException
IllegalSymbolException
public double forward(SymbolList[] seq, ScoreType scoreType) throws IllegalSymbolException, IllegalAlphabetException, IllegalSymbolException
forward
in class DP
IllegalSymbolException
IllegalAlphabetException
public double backward(SymbolList[] seq, ScoreType scoreType) throws IllegalSymbolException, IllegalAlphabetException, IllegalSymbolException
backward
in class DP
IllegalSymbolException
IllegalAlphabetException
public DPMatrix forwardMatrix(SymbolList[] seq, ScoreType scoreType) throws IllegalSymbolException, IllegalAlphabetException, IllegalSymbolException
forwardMatrix
in class DP
IllegalSymbolException
IllegalAlphabetException
public DPMatrix backwardMatrix(SymbolList[] seq, ScoreType scoreType) throws IllegalSymbolException, IllegalAlphabetException, IllegalSymbolException
backwardMatrix
in class DP
IllegalSymbolException
IllegalAlphabetException
public DPMatrix forwardMatrix(SymbolList[] seq, DPMatrix matrix, ScoreType scoreType) throws IllegalArgumentException, IllegalSymbolException, IllegalAlphabetException, IllegalSymbolException
forwardMatrix
in class DP
IllegalArgumentException
IllegalSymbolException
IllegalAlphabetException
public DPMatrix backwardMatrix(SymbolList[] seq, DPMatrix matrix, ScoreType scoreType) throws IllegalArgumentException, IllegalSymbolException, IllegalAlphabetException, IllegalSymbolException
backwardMatrix
in class DP
IllegalArgumentException
IllegalSymbolException
IllegalAlphabetException
protected double forward(DPCursor dpCursor, ScoreType scoreType) throws IllegalSymbolException
IllegalSymbolException
protected double backward(DPCursor dpCursor, ScoreType scoreType) throws IllegalSymbolException
IllegalSymbolException
protected void forward_initialize(DPCursor dpCursor, ScoreType scoreType) throws IllegalSymbolException
IllegalSymbolException
protected void backward_initialize(DPCursor dpCursor, ScoreType scoreType) throws IllegalSymbolException
IllegalSymbolException
protected void backward_recurse(DPCursor dpCursor, ScoreType scoreType) throws IllegalSymbolException
IllegalSymbolException
protected double backward_termination(DPCursor dpCursor, ScoreType scoreType) throws IllegalSymbolException
IllegalSymbolException
public StatePath viterbi(SymbolList[] symList, ScoreType scoreType) throws IllegalSymbolException
viterbi
in class DP
IllegalSymbolException
Copyright © 2014 BioJava. All rights reserved.