next up previous contents
Next: The curves of the Up: Graphical presentations inside subgraphs Previous: Line diagrams based on

Histograms in subgraphs

 

tabular2544

The command sets a histogram for subgraphs computed by the commands fldhisto and clhisto (see Sections 4.5.2 and 4.6.7). These commands produce two different formats for a histogram data that must be noted when a graphical presentation is created.

fldhisto:
The command produces a frame with two fields: "x" and "N". Thus the command hst should have a reference to a field "N". Also when one histogram is set then the index must be given.
clhisto:
This command produces a data frame in which a class (neuron) has one data record and each pin of the histogram is stored in its own field. These fields are named by running numbers from 0 to tex2html_wrap_inline6474 . In addition, the histogram is a frame including this data frame called "data" and a field for the x-axis named "x". The command hst does not require the parameter "index", but all the subgraphs will have a histogram. Of course, this requires that a graphic structure has a subgraph for each class as SOM-based graphics should always invoke.

Example (ex7.23): The example shows how histograms can be set for each neuron in a SOM.

# SOM training and classification
...
NDA> clhisto -c c1 -max 10 -f boston.age -dout hst
NDA> mkgrp grp1 -s s1
NDA> layer grp1 -l 3
NDA> hst grp1 -d hst.data -co red -sca som2
...

figure2562

Example (ex7.24): The second example shows how a simple histogram can be computed for one field. See another example of the description of the command fldhisto in Section 4.5.2.

# SOM training and classification
...
NDA> fldhisto -f boston.age -max 30 -dout fhst
NDA> mkgrp grp
NDA> addsg grp
NDA> hst grp -inx 0 -d fhst.N -co red
...

figure2570



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