Abstract base class for emissions produced by an HMM.
There can be two representations for emissions:
1) An internal, used in ghmm.py and the ghmm C-library
2) An external, used in your particular application
Example:
The underlying library represents symbols from a finite,
discrete domain as integers (see Alphabet).
EmissionDomain is the identity mapping
- EmissionDomain and derived -------------------------------------------------
Methods
|
|
external
externalSequence
internal
internalSequence
isAdmissable
|
|
external
|
external ( self, internal )
Given an internal representation return the
external representation
|
|
externalSequence
|
externalSequence ( self, internalSequence )
Given a sequence with the internal representation return the
external representation
|
|
internal
|
internal ( self, emission )
Given a emission return the internal representation
|
|
internalSequence
|
internalSequence ( self, emissionSequence )
Given a emissionSequence return the internal representation
|
|
isAdmissable
|
isAdmissable ( self, emission )
Check whether emission is admissable (contained in) the domain
raises GHMMOutOfDomain else
|
|