next up previous contents
Next: Overlapping sequential data sets Up: Data reorganization Previous: Classifying data records to

Concatenating sequencies

 

tabular917

The operation creates a new data frame to which it concates data records from the given data. The operation slides a window over the source data, and it concates data record inside the window.

For instance, the source data includes records tex2html_wrap_inline5210 , tex2html_wrap_inline5212 , tex2html_wrap_inline5214 , tex2html_wrap_inline5216 , and so on. If the parameter <length> is 2 and <step> is 1 (default), then the target data will include the data records tex2html_wrap_inline5218 , tex2html_wrap_inline5220 , and so on. Here the indexes refers to the data records of the source data. If the parameter <step1> is given, then the procedure skips over as many data records as defined, when it moves the window. The parameter <step2> is a step between data records within time windows. See also the figure below and the command from Sect. 3.12.

The result data fields are named according to the names in the source data with indexed extensions. The indexes are created to indicate the position inside the window. For instance, the field "x" would lead to new fields called "x_0", "x_1", "x_2" and so on.

figure924

Example (ex3.7): The following example demonstrates the use of the command. The length of the window is now four.

NDA> load gauss3.dat
#
# collecting records
#
NDA> concseq -d gauss -dout gauss2 -len 4
#
# the normal SOM processing
#
NDA> prepro -d gauss2 -dout pre -edev -n
NDA> somtr -d pre -sout som1 -l 5
NDA> somcl -d pre -s som1 -cout cld
NDA> clstat -d gauss2 -c cld -dout sta -all
NDA> mkgrp win1 -s som1
NDA> setgdat win1 -d sta
NDA> setgcld win1 -c cld
NDA> show win1
#
# visualization through line diagrams
#
NDA> ldgr win1 -n x -co red
NDA> ldgrc win1 -n x -inx 0 -f sta.x_0_avg -sca som2
NDA> ldgrc win1 -n x -inx 1 -f sta.x_1_avg -sca som2
NDA> ldgrc win1 -n x -inx 2 -f sta.x_2_avg -sca som2
NDA> ldgrc win1 -n x -inx 3 -f sta.x_3_avg -sca som2
NDA> ldgr win1 -n y -co blue
NDA> ldgrc win1 -n y -inx 0 -f sta.y_0_avg -sca som2
NDA> ldgrc win1 -n y -inx 1 -f sta.y_1_avg -sca som2
NDA> ldgrc win1 -n y -inx 2 -f sta.y_2_avg -sca som2
NDA> ldgrc win1 -n y -inx 3 -f sta.y_3_avg -sca som2
NDA> dis win1 ldgrlab
NDA> layer win1 -l 3
NDA> draw /win1

figure929



Erkki Hakkinen
Thu Sep 24 11:51:34 EET DST 1998