next up previous contents
Next: Conversion for time Up: Basic operations for managing Previous: Selecting items to frames

Handling classified data frames

      

tabular619

These commands are purposed to handle classified data frames. The first one addcld creates an empty classified data. The second command addcl creates a new empty class to a classified data. The command updcl updates a class by an identifier. An identifier is created to a class if it does not exist, otherwise an identifier is removed from a class. The command shftcld adds a constant index to all the indexes in the classified data.

Example (ex2.2): A typical use for these commands is a grouping. Now neurons are collected to groups. The whole grouping is included into a classified data in which one class corresponds to one group of the neurons.

...
NDA> somtr...
...
NDA> addcld -c groups
NDA> addcl -c groups -cl goodAp
NDA> updcl -cl groups.goodAp -id 14
NDA> updcl -cl groups.goodAp -id 16
NDA> addcl -c groups -cl badAp
NDA> updcl -cl groups.badAp -id 17
# remove 17 from badAp
NDA> updcl -cl groups.badAp -id 17
...

Example: Normally, the grouping is not performed manually but by the graphical user interface (GUI). The following command sequence describes what happens behind the GUI.

The identifiers of the neurons are got from a graphical image by the commands fndpnt and fndreg (see Sect. 7.13.2). This can also be done by runevent (see Sect. 7.13.3). Typically coordinates for these commands are read from a mouse input. Run first the example `ex7.4' and then apply the commands below.

...
NDA> somtr ...
NDA> mkgrp grp1 -s som1
...
# graphical viewing and commands behind it
# creating groups
NDA> addcld -c groups
NDA> addcl -c groups -cl goodAp
...
# A mouse event causes to perform commands
# for updating a point to groups:
NDA> fndpnt grp1 0.3 0.4
# -> neuron's id = 8
NDA> updcl -cl groups.goodAp -id 8
...
# A mouse event causes to commands for updating a region to groups:
NDA> fndreg grp1 0.1 0.1 0.5 0.1 0.5 0.5 0.1 0.5
# -> neuron's id = 8, 6, 5, 7
NDA> updcl -cl groups.goodAp -id 6
NDA> updcl -cl groups.goodAp -id 5
NDA> updcl -cl groups.goodAp -id 7
...



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