1GSL-RANDIST(1)              General Commands Manual             GSL-RANDIST(1)
2
3
4

NAME

6       gsl-randist - generate random samples from various distributions
7

SYNOPSYS

9       gsl-randist seed n DIST param1 param2 [..]
10

DESCRIPTION

12       gsl-randist  is a demonstration program for the GNU Scientific Library.
13       It generates n random samples from the distribution DIST using the dis‐
14       tribution parameters param1, param2, ...
15

EXAMPLE

17       Here  is  an  example.   We generate 10000 random samples from a Cauchy
18       distribution with a width of 30 and histogram them over the range  -100
19       to 100, using 200 bins.
20
21            gsl-randist  0 10000 cauchy 30 | gsl-histogram -100 100 200 > his‐
22       togram.dat
23
24       A plot of the resulting histogram will show the familiar shape  of  the
25       Cauchy distribution with fluctuations caused by the finite sample size.
26
27            awk '{print $1, $3 ; print $2, $3}' histogram.dat | graph -T X
28
29

SEE ALSO

31       gsl(3), gsl-histogram(1).
32
33

AUTHOR

35       gsl-randist  was  written  by James Theiler and Brian Gough.  Copyright
36       1996-2000; for copying conditions see the GNU General Public Licence.
37
38       This manual page was added by the Dirk  Eddelbuettel  <edd@debian.org>,
39       the Debian GNU/Linux maintainer for GSL.
40
41
42
43GNU                                                             GSL-RANDIST(1)
Impressum