|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.models.hmm.transitions.BasicHigherOrderTransition.AbstractTransitionElement
de.jstacs.models.hmm.transitions.elements.BasicTransitionElement
de.jstacs.models.hmm.transitions.elements.BasicPluginTransitionElement
public class BasicPluginTransitionElement
Basic transition element without random initialization of parameters.
| Field Summary |
|---|
| Fields inherited from class de.jstacs.models.hmm.transitions.BasicHigherOrderTransition.AbstractTransitionElement |
|---|
context, descendants, hyperParameters, logNorm, parameters, states, statistic |
| Constructor Summary | |
|---|---|
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. |
|
| 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. |
protected String |
getXMLTag()
This method returns the xml tag used in BasicHigherOrderTransition.AbstractTransitionElement.toXML(). |
void |
initializeRandomly()
This method draws new parameters from the prior. |
| Methods inherited from class de.jstacs.models.hmm.transitions.BasicHigherOrderTransition.AbstractTransitionElement |
|---|
addToStatistic, appendGraphvizDescription, appendTransitions, clone, drawParametersFromStatistic, estimateFromStatistic, getArrowOption, getChild, getContext, getDescendant, getGraphvizEdgeWeight, getLabel, getLogGammaScoreFromStatistic, getLogPriorTerm, getLogScoreFor, getNextContext, getNumberOfChildren, getNumberOfParameters, init, precompute, resetStatistic, setIndexOfDescendantTransitionElement, toString, toString, toXML |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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| Method Detail |
|---|
public void initializeRandomly()
BasicHigherOrderTransition.AbstractTransitionElement
initializeRandomly in class BasicHigherOrderTransition.AbstractTransitionElementprotected void appendFurtherInformation(StringBuffer xml)
BasicHigherOrderTransition.AbstractTransitionElement
appendFurtherInformation in class BasicTransitionElementxml - the XML representation
protected void extractFurtherInformation(StringBuffer xml)
throws NonParsableException
BasicHigherOrderTransition.AbstractTransitionElement
extractFurtherInformation in class BasicTransitionElementxml - the XML representation
NonParsableException - if the information could not be reconstructed out of the StringBuffer xmlprotected String getXMLTag()
BasicHigherOrderTransition.AbstractTransitionElementBasicHigherOrderTransition.AbstractTransitionElement.toXML().
getXMLTag in class BasicHigherOrderTransition.AbstractTransitionElementBasicHigherOrderTransition.AbstractTransitionElement.toXML()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||