public interface EmissionState extends State, Trainable, Changeable
A state in a markov process that has an emission spectrum.
These states have an associated Distribution. Within an HMM, these are the states that actualy make your observed sequence. They also must supply training behaviour to set the emission spectrum up.
Annotatable.AnnotationForwarder
Modifier and Type | Field and Description |
---|---|
static ChangeType |
ADVANCE
This signals that the advance array has been altered.
|
static ChangeType |
DISTRIBUTION
This signals that the distribution associate with an EmissionState has
been altered.
|
ANNOTATION
Modifier and Type | Method and Description |
---|---|
int[] |
getAdvance()
Determine the number of symbols this state advances along
one or more symbol lists.
|
Distribution |
getDistribution()
Get the Distribution associated with this state.
|
void |
setAdvance(int[] advance)
Set the advance array.
|
void |
setDistribution(Distribution dis)
Set the Distribution associated with this state.
|
getSymbols
getMatches, getName
getAnnotation
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
registerWithTrainer
static final ChangeType DISTRIBUTION
This signals that the distribution associate with an EmissionState has been altered.
If the distribution has changed its weights, then the event'e getChainedEvent method will return the event fired by the distribution. If one distribution has been replaced by another, then the new and old Distributions will be in current and previous, respectively.
static final ChangeType ADVANCE
This signals that the advance array has been altered.
current and previous should hold the current and previous advances, respectively.
int[] getAdvance()
void setAdvance(int[] advance) throws ChangeVetoException
advance
- an array of ints, specifying how many symbols are consumed
from each sequenceChangeVetoException
- if the implementation doesn't support setting
advance, or if the change is vetoedDistribution getDistribution()
Get the Distribution associated with this state.
If the state is to be added to an HMM, then the state's emission spectrum must be compatible with the HMM - that is, their emission alphabets must match.
void setDistribution(Distribution dis) throws ChangeVetoException
dis
- the new Distribution to useChangeVetoException
- if the implementation doesn't support setting
the distribution, or if the change is vetoedCopyright © 2014 BioJava. All rights reserved.