Input and Output File Format

Every file read (written) by the hmm plugin must be in the following format:

$<N>$
$<M>$

$<pi_{(N \times 1)}>$

$<A_{(N \times N)}>$

$<B_{(N \times M)}>$

where $<$N$>$, $<$M$>$, $<$pi$>$, $<$A$>$ and $<$B$>$ are the hmm attributes specified previously.

Example:

2
3

1.0
0.0

0.3 0.7
0.5 0.5

0.2 0.2 0.6
0.3 0.6 0.1

Note: The load and save methods can, as previously described, load/save specific attribute descriptions. In this case, the file which is read/written by these methods should have the same format described above, but include only the specific attribute which is being loaded/saved, i.e, the other attributes should be omitted from the file.



Guilherme Dutra Gonzaga Jaime 2010-10-27