next up previous contents
Next: Comparison of two data Up: Field statistics Previous: Basic statistics for fields

Histograms for fields

 

tabular1252

The operation computes a histogram for a field. The range of the field is divided to the number of the uniform pins defined by <pins>. Then the amount of the hits is computed. The result will be a frame with two fields: the field "x" including the centroids of the pins and the field "N" including the number of the hits in pins.

Example (ex4.8): The simple example shows how a histogram can be computed for fuzzy coding. See also the command hst from the part of graphics (Sect. 7.4.7).

NDA> load boston.dat
NDA> mkfz fz
NDA> fldhisto -f boston.age -max 50 -dout hst
NDA> hst fz.grp -inx 0 -d hst.N -co red
NDA> addfzs fz -fs s1 -t 8
NDA> addfzs fz -fs s2 -t 8
NDA> initfz fz -lock
NDA> func1 fz.grp -f fz.sets.s1 -co blue
NDA> func1 fz.grp -f fz.sets.s2 -co blue
NDA> viewp fz.grp -dz 120
NDA> wrps -n fz.grp -o fzhst.ps -w 500 -h 200

figure1263



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