next up previous
Next: Data Structures and Up: File Formats Previous: Static Files

Sequence Files

The SEQUENCE file type is similar to the STATIC type except that groups (referred to as "patterns") of ordered input vectors share a single output vector. There are five parameters for this file type: The TYPE declaration, the number of inputs, the number of outputs, an upper limit on the number of input vectors in a pattern, and the number of patterns in the file. After the parameters, each pattern is as follows. First comes the length (number of input vectors) enclosed in square brackets. This is followed by the named quantity of input vectors which is then followed by the output vector. Values after a output vector before the next bracketed pattern length are ignored. An example of this format is shown:

% SEQUENCE file format sample.  Here, there are 2 patterns, each with
% 3D input vectors and 2D output vectors.
TYPE:SEQUENCE
#INPUTS:3
#OUTPUTS:2
#MAXVECTORSPERPATTERN:5
#PATTERNS:2
% The bracketed quantity begins a pattern.
[4]
5 9 6 
8 6 8 
8 4 8 
5 7 6 
% The output vector for this pattern.
9 5 
[5]
5 8 6 
5 3 1 
8 1 8 
1 7 6 
9 5 0
1 0 
% End of SEQUENCE data file.



Kui-yu Chang
Wed Mar 12 14:55:12 CST 1997