|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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 |
joinStatistics(Emission... emissions)
This method joins the statistics of different instances and sets this joined statistic as statistic of each instance. |
void |
resetStatistic()
This method resets the internal sufficient statistic. |
void |
setParameters(Emission t)
Set values of parameters of the instance to the value of the parameters of the given instance. |
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()
StatisticalModel.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 joinStatistics(Emission... emissions)
emissions
- the emissions to be joinedvoid 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
void setParameters(Emission t) throws IllegalArgumentException
t
- the emission with the parameters to be set
IllegalArgumentException
- if the assumption about the same class for given and current instance is wrong
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |