Import definitions

Read HMM file (ReadHMM)

ReadHMM[file_] := Module[{A, B, π, tmp, nStates, nObservables}, fp = Open ... 60; = Read[fp, Table[Number, {nStates}]] ; Close[fp] ;  {A, B, π} ] ;

Read observation sequence file (ReadObservationSequences)

ReadSingleObservationSequence[fp_] := Module[{o, T, label}, T = Read[fp, Numbe ... 62371;label = Read[fp, Word] ; o = Read[fp, Table[Number, {T}]] ; o + 1] ;

ReadObservationSequences[file_] := Module[{fp, M, os}, fp = OpenRead[file] ; & ... 371;os = Table[ReadSingleObservationSequence[fp], {M}] ; Close[fp] ; os] ;


Created by Mathematica  (October 20, 2003)