|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.jstacs.models.hmm.states.emissions.discrete.AbstractConditionalDiscreteEmission de.jstacs.models.hmm.states.emissions.discrete.DiscreteEmission
public class DiscreteEmission
This class implements a simple discrete emission without any condition.
Field Summary |
---|
Fields inherited from class de.jstacs.models.hmm.states.emissions.discrete.AbstractConditionalDiscreteEmission |
---|
con, counter, ess, grad, hyperParams, logNorm, offset, params, paramsFile, probs, reader, samplingIndex, statistic, writer |
Constructor Summary | |
---|---|
DiscreteEmission(AlphabetContainer con,
double ess)
This is a simple constructor for a DiscreteEmission based on the equivalent sample size. |
|
DiscreteEmission(AlphabetContainer con,
double[] hyperParams)
This is a simple constructor for a DiscreteEmission defining the individual hyper parameters. |
|
DiscreteEmission(StringBuffer xml)
Creates a DiscreteEmission from its XML representation. |
Method Summary | |
---|---|
protected int |
getConditionIndex(boolean forward,
int seqPos,
Sequence seq)
This method returns an index encoding the condition. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DiscreteEmission(AlphabetContainer con, double ess)
DiscreteEmission
based on the equivalent sample size.
con
- the AlphabetContainer
of this emissioness
- the equivalent sample size (ess) of this emission that is equally distributed over all parametersDiscreteEmission(AlphabetContainer, double[])
public DiscreteEmission(AlphabetContainer con, double[] hyperParams)
DiscreteEmission
defining the individual hyper parameters.
con
- the AlphabetContainer
of this emissionhyperParams
- the individual hyper parameters for each parameterpublic DiscreteEmission(StringBuffer xml) throws NonParsableException
DiscreteEmission
from its XML representation.
xml
- the XML representation.
NonParsableException
- if the XML representation could not be parsedMethod Detail |
---|
protected int getConditionIndex(boolean forward, int seqPos, Sequence seq)
AbstractConditionalDiscreteEmission
getConditionIndex
in class AbstractConditionalDiscreteEmission
forward
- a switch to decide whether to use the forward or the reverse complementary strand (e.g. for DNA sequences)seqPos
- the position in the sequence seq
seq
- the sequence
public String toString()
toString
in class AbstractConditionalDiscreteEmission
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |