next up previous contents
Next: Connecting neurons Up: Setting a structure over Previous: Setting the topology and

Creating trajectories

 

tabular2213

The operation creates a trajectory onto a TS-SOM layer. Data records (indexes from <min> to <max>) are placed to neurons according to the SOM classification. If a classified data has been connected to a graphic structure by the command setgcld (see Sect. 7.1.1), it defines the mapping between neurons and data records. However, one can override this by giving a classified data with the flag -c. The default way to locate a trajectory is to set trajectory points in the centroid of the subgraphs. You can adjust points by mapping data records to the neurons of the TS-SOM (see command somproj in Section 5.1.9), and then you should direct this data to the trajectory in the parameter <data>.

Example (ex7.7): The following command sequence creates the graphic structure "grp1" and connects a classified data to it. Then, it creates a trajectory which is labelled by the indexes which are shown for every 20th data records. Note that the trajectory depends on the layer of the TS-SOM, and it will be updated after setting the current layer.

...
NDA> mkgrp grp1 -s som1
NDA> setgcld grp1 grp1 -c cld1
NDA> layer grp1 -l 3
NDA> traj grp1 -n tr1 -co blue -min 0 -max 300 -step 20
...

figure2227

Example (ex7.8): The previous example fixed the trajectory lines to the centroids of the neurons. In this example, we compute the distance data which describes the distances between data records and their BMU neurons. These distances are used to move lines from the centroids of the neurons.

Also the classified data alone can be used to map trajectories from distinct data sets to the same SOM. Thus, the projection data (here "dmat") is not necessary for this command.

NDA> somproj -s som1 -w som1_W -d predata -c c1 -dout dmat
...
NDA> mkgrp grp1 -s som1
NDA> setgcld grp1 grp1 -c 1
NDA> layer grp1 -l 3
NDA> traj grp1 -n tr1 -co blue -min 0 -max 300 -step 20 -c c1 -d dmat
...

figure2234



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