1 .\" Man page contributed by Dirk Eddelbuettel <edd@debian.org>
2 .\" and released under the GNU General Public License
3 .TH GSL-HISTOGRAM 1 "" GNU
5 gsl-histogram - compute histogram of data on stdin
7 .B gsl-histogram xmin xmax [n]
10 is a demonstration program for the GNU Scientific Library.
11 It takes three arguments, specifying the upper and lower bounds of the
12 histogram and the number of bins. It then reads numbers from `stdin',
13 one line at a time, and adds them to the histogram. When there is no
14 more data to read it prints out the accumulated histogram using
15 gsl_histogram_fprintf. If n is unspecified then bins of integer width
18 Here is an example. We generate 10000 random samples from a Cauchy
19 distribution with a width of 30 and histogram them over the range -100 to
22 gsl-randist 0 10000 cauchy 30 | gsl-histogram -100 100 200 > histogram.dat
24 A plot of the resulting histogram will show the familiar shape of the
25 Cauchy distribution with fluctuations caused by the finite sample
28 awk '{print $1, $3 ; print $2, $3}' histogram.dat | graph -T X
36 was written by Brian Gough.
37 Copyright 1996-2000; for copying conditions see the GNU General
40 This manual page was added by the Dirk Eddelbuettel
41 <edd@debian.org>, the Debian GNU/Linux maintainer for