|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Emission
This interface declares all method for an emission of a state.
State
Method Summary | |
---|---|
void |
addToStatistic(boolean forward,
int startPos,
int endPos,
double weight,
Sequence seq)
This method adds the weight to the internal sufficient statistic. |
void |
estimateFromStatistic()
This method estimates the parameters from the internal sufficient statistic. |
AlphabetContainer |
getAlphabetContainer()
This method returns the AlphabetContainer of this emission. |
double |
getLogPriorTerm()
Returns a value that is proportional to the log of the prior. |
double |
getLogProbFor(boolean forward,
int startPos,
int endPos,
Sequence seq)
This method computes the logarithm of the likelihood. |
String |
getNodeLabel(double weight,
String name,
NumberFormat nf)
Returns the graphviz label of the node containing this emission. |
String |
getNodeShape(boolean forward)
Returns the graphviz string for the shape of the node. |
void |
initializeFunctionRandomly()
This method initializes the emission randomly. |
void |
resetStatistic()
This method resets the internal sufficient statistic. |
Methods inherited from interface de.jstacs.Storable |
---|
toXML |
Method Detail |
---|
AlphabetContainer getAlphabetContainer()
AlphabetContainer
of this emission.
AlphabetContainer
of this emissionvoid initializeFunctionRandomly()
double getLogProbFor(boolean forward, int startPos, int endPos, Sequence seq) throws OperationNotSupportedException
forward
- whether to use the forward or the reverse strandstartPos
- the start positionendPos
- the end positionseq
- the sequence
OperationNotSupportedException
- if forward=false
and the reverse complement of the sequence seq
is not defineddouble getLogPriorTerm()
Model.getLogPriorTerm()
void resetStatistic()
void addToStatistic(boolean forward, int startPos, int endPos, double weight, Sequence seq) throws OperationNotSupportedException
weight
to the internal sufficient statistic.
forward
- whether to use the forward or the reverse strandstartPos
- the start positionendPos
- the end positionweight
- the weight of the sequenceseq
- the sequence
OperationNotSupportedException
- if forward=false
and the reverse complement of the sequence seq
is not definedvoid estimateFromStatistic()
String getNodeShape(boolean forward)
forward
- if this emission is used on the forward strand
String getNodeLabel(double weight, String name, NumberFormat nf)
weight
- the weight of the node which is represented by
the color of the node, or -1 for no representation, i.e.,
white backgroundname
- the name of the state using this emissionnf
- the NumberFormat
for formatting the textual representation of this emission
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |