public class BasicPluginTransitionElement extends BasicTransitionElement
context, descendants, hyperParameters, logNorm, parameters, states, statistic
Constructor and Description |
---|
BasicPluginTransitionElement(int[] context,
int[] states,
double[] probs,
double[] hyperParameters)
Constructor creating a new instance with given context, descendant states, and hyper parameters.
|
BasicPluginTransitionElement(int[] context,
int[] states,
double[] probs,
double[] hyperParameters,
double[] weight)
Constructor creating a new instance with given context, descendant states, and hyper parameters.
|
BasicPluginTransitionElement(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.
|
protected String |
getXMLTag()
This method returns the xml tag used in
BasicHigherOrderTransition.AbstractTransitionElement.toXML() . |
void |
initializeRandomly()
This method draws new parameters from the prior.
|
addToStatistic, appendGraphvizDescription, appendTransitions, clone, drawParametersFromStatistic, estimateFromStatistic, getArrowOption, getChild, getContext, getDescendant, getGraphvizEdgeWeight, getLabel, getLastContextState, getLogGammaScoreFromStatistic, getLogPriorTerm, getLogScoreFor, getNextContext, getNumberOfChildren, getNumberOfParameters, init, joinStatistics, precompute, resetStatistic, setIndexOfDescendantTransitionElement, setParameters, toString, toString, toXML
public BasicPluginTransitionElement(int[] context, int[] states, double[] probs, double[] hyperParameters)
context
- previously visited state indices; last entry corresponds to the last state visitedstates
- all possible states that can be reached from the context; if null
then no transition allowedprobs
- initial probabilitieshyperParameters
- hyper-parameters for transitions; if null
then no prior is usedBasicPluginTransitionElement(int[], int[], double[], double[], double[])
public BasicPluginTransitionElement(int[] context, int[] states, double[] probs, double[] hyperParameters, double[] weight)
context
- previously visited state indices; last entry corresponds to the last state visitedstates
- all possible states that can be reached from the context; if null
then no transition allowedprobs
- initial probabilitieshyperParameters
- hyper-parameters for transitions; if null
then no prior is usedweight
- the weight for plotting the edge in Graphviz, enables to modify the edge length, larger weights imply shorter edges (default: 1)public BasicPluginTransitionElement(StringBuffer xml) throws NonParsableException
Storable
.
Constructs a BasicPluginTransitionElement
out of an XML representation.xml
- the XML representation as StringBuffer
NonParsableException
- if the BasicPluginTransitionElement
could not be reconstructed out of
the StringBuffer
xml
public void initializeRandomly()
BasicHigherOrderTransition.AbstractTransitionElement
initializeRandomly
in class BasicHigherOrderTransition.AbstractTransitionElement
protected void appendFurtherInformation(StringBuffer xml)
BasicHigherOrderTransition.AbstractTransitionElement
appendFurtherInformation
in class BasicTransitionElement
xml
- the XML representationprotected void extractFurtherInformation(StringBuffer xml) throws NonParsableException
BasicHigherOrderTransition.AbstractTransitionElement
extractFurtherInformation
in class BasicTransitionElement
xml
- the XML representationNonParsableException
- if the information could not be reconstructed out of the StringBuffer
xml
protected String getXMLTag()
BasicHigherOrderTransition.AbstractTransitionElement
BasicHigherOrderTransition.AbstractTransitionElement.toXML()
.getXMLTag
in class BasicHigherOrderTransition.AbstractTransitionElement
BasicHigherOrderTransition.AbstractTransitionElement.toXML()