public class BasicTransitionElement extends BasicHigherOrderTransition.AbstractTransitionElement
context, descendants, hyperParameters, logNorm, parameters, states, statistic
Constructor and Description |
---|
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 . |
Modifier and Type | Method and Description |
---|---|
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.
|
addToStatistic, appendGraphvizDescription, appendTransitions, clone, drawParametersFromStatistic, estimateFromStatistic, getArrowOption, getChild, getContext, getDescendant, getGraphvizEdgeWeight, getLabel, getLastContextState, getLogGammaScoreFromStatistic, getLogPriorTerm, getLogScoreFor, getNextContext, getNumberOfChildren, getNumberOfParameters, getXMLTag, init, initializeRandomly, joinStatistics, precompute, resetStatistic, setIndexOfDescendantTransitionElement, setParameters, toString, toString, toXML
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
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 representationNonParsableException
- if the information could not be reconstructed out of the StringBuffer
xml