|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.sequenceScores.statisticalModels.trainable.hmm.transitions.BasicHigherOrderTransition.AbstractTransitionElement
de.jstacs.sequenceScores.statisticalModels.trainable.hmm.transitions.elements.BasicTransitionElement
public class BasicTransitionElement
This class implements the probability distribution for a given context, i.e. it contains all possible transition and the corresponding probabilities for a given set of previously visited states. This class just implements the basic functionalities.
Field Summary |
---|
Fields inherited from class de.jstacs.sequenceScores.statisticalModels.trainable.hmm.transitions.BasicHigherOrderTransition.AbstractTransitionElement |
---|
context, descendants, hyperParameters, logNorm, parameters, states, statistic |
Constructor Summary | |
---|---|
BasicTransitionElement(int[] context,
int[] states,
double[] hyperParameters)
This is the main constructor creating a new instance with given context, descendant states, and hyper parameters. |
|
BasicTransitionElement(int[] context,
int[] states,
double[] hyperParameters,
double[] weight)
This is the main constructor creating a new instance with given context, descendant states, and hyper parameters. |
|
BasicTransitionElement(StringBuffer xml)
The standard constructor for the interface Storable . |
Method Summary | |
---|---|
protected void |
appendFurtherInformation(StringBuffer xml)
This method appends further information to the XML representation. |
protected void |
extractFurtherInformation(StringBuffer xml)
This method extracts further information from the XML representation. |
Methods inherited from class de.jstacs.sequenceScores.statisticalModels.trainable.hmm.transitions.BasicHigherOrderTransition.AbstractTransitionElement |
---|
addToStatistic, appendGraphvizDescription, appendTransitions, clone, drawParametersFromStatistic, estimateFromStatistic, getArrowOption, getChild, getContext, getDescendant, getGraphvizEdgeWeight, getLabel, getLogGammaScoreFromStatistic, getLogPriorTerm, getLogScoreFor, getNextContext, getNumberOfChildren, getNumberOfParameters, getXMLTag, init, initializeRandomly, joinStatistics, precompute, resetStatistic, setIndexOfDescendantTransitionElement, setParameters, toString, toString, toXML |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BasicTransitionElement(int[] context, int[] states, double[] hyperParameters)
context
- the context (=previously visited state indices); last entry corresponds to the last state visitedstates
- the transitions to all possible states; if null
then no transition allowedhyperParameters
- the hyper parameters for the transitions; if null
then no prior is usedBasicTransitionElement(int[], int[], double[], double[])
public BasicTransitionElement(int[] context, int[] states, double[] hyperParameters, double[] weight)
context
- the context (=previously visited state indices); last entry corresponds to the last state visitedstates
- the transitions to all possible states; if null
then no transition allowedhyperParameters
- the hyper parameters for the transitions; if null
then no prior is usedweight
- the weight for plotting the edges in Graphviz, enables to modify the edge length, larger weights imply shorter edges (default: 1)public BasicTransitionElement(StringBuffer xml) throws NonParsableException
Storable
.
Constructs a BasicHigherOrderTransition.AbstractTransitionElement
out of an XML representation.
xml
- the XML representation as StringBuffer
NonParsableException
- if the BasicHigherOrderTransition.AbstractTransitionElement
could not be reconstructed out of
the StringBuffer
xml
Method Detail |
---|
protected void appendFurtherInformation(StringBuffer xml)
BasicHigherOrderTransition.AbstractTransitionElement
appendFurtherInformation
in class BasicHigherOrderTransition.AbstractTransitionElement
xml
- the XML representationprotected void extractFurtherInformation(StringBuffer xml) throws NonParsableException
BasicHigherOrderTransition.AbstractTransitionElement
extractFurtherInformation
in class BasicHigherOrderTransition.AbstractTransitionElement
xml
- the XML representation
NonParsableException
- if the information could not be reconstructed out of the StringBuffer
xml
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |