Table of Contents

Class: EmissionSequence /amd/bernoulli/1/home/abt_vin/georgi/hmm/0.7/ghmm//ghmmwrapper/ghmm.py

An EmissionSequence contains the internal representation of a sequence of emissions. It also contains a reference to the domain where the emission orginated from.

Methods   
__del__
__getitem__
__init__
__len__
__setitem__
__str__
getSeqLabel
getStateLabel
getWeight
sequenceSet
setSeqLabel
setWeight
write
  __del__ 
__del__ ( self )

Deallocation of C sequence struct.

  __getitem__ 
__getitem__ ( self,  index )

Return the symbol at position index.

Exceptions   
IndexError
  __init__ 
__init__ (
        self,
        emissionDomain,
        sequenceInput,
        labelDomain=None,
        labelInput=None,
        ParentSequenceSet=None,
        )

Exceptions   
IOError, 'File ' + str( sequenceInput ) + ' not found.'
NoValidCDataType, "C data type " + str( self.emissionDomain.CDataType ) + " invalid."
UnknownInputType, "inputType " + str(type( sequenceInput ) ) + " not recognized."
badCPointer, "Use SequenceSet for multiple sequences."
  __len__ 
__len__ ( self )

Returns the length of the sequence.

  __setitem__ 
__setitem__ (
        self,
        index,
        value,
        )

  __str__ 
__str__ ( self )

Defines string representation.

  getSeqLabel 
getSeqLabel ( self )

  getStateLabel 
getStateLabel ( self )

Returns the labeling of the sequence in internal representation

Exceptions   
IndexOutOfBounds( str( 0 ) + " is out of bounds, only " + str( self.cseq.seq_number ) + "labels" )
  getWeight 
getWeight ( self )

  sequenceSet 
sequenceSet ( self )

Return a one-element SequenceSet with this sequence.

  setSeqLabel 
setSeqLabel ( self,  value )

  setWeight 
setWeight ( self,  value )

  write 
write ( self,  fileName )

Writes the EmissionSequence into file fileName.


Table of Contents

This document was automatically generated on Fri Jan 20 14:56:59 2006 by HappyDoc version WORKING