jpayne@68: .\" Man page contributed by Dirk Eddelbuettel jpayne@68: .\" and released under the GNU General Public License jpayne@68: .TH GSL-RANDIST 1 "" GNU jpayne@68: .SH NAME jpayne@68: gsl-randist - generate random samples from various distributions jpayne@68: .SH SYNOPSYS jpayne@68: .B gsl-randist seed n DIST param1 param2 [..] jpayne@68: .SH DESCRIPTION jpayne@68: .B gsl-randist jpayne@68: is a demonstration program for the GNU Scientific Library. jpayne@68: It generates n random samples from the distribution DIST using the distribution jpayne@68: parameters param1, param2, ... jpayne@68: .SH EXAMPLE jpayne@68: Here is an example. We generate 10000 random samples from a Cauchy jpayne@68: distribution with a width of 30 and histogram them over the range -100 to jpayne@68: 100, using 200 bins. jpayne@68: jpayne@68: gsl-randist 0 10000 cauchy 30 | gsl-histogram -100 100 200 > histogram.dat jpayne@68: jpayne@68: A plot of the resulting histogram will show the familiar shape of the jpayne@68: Cauchy distribution with fluctuations caused by the finite sample jpayne@68: size. jpayne@68: jpayne@68: awk '{print $1, $3 ; print $2, $3}' histogram.dat | graph -T X jpayne@68: jpayne@68: .SH SEE ALSO jpayne@68: .BR gsl(3) , jpayne@68: .BR gsl-histogram(1) . jpayne@68: jpayne@68: .SH AUTHOR jpayne@68: .B gsl-randist jpayne@68: was written by James Theiler and Brian Gough. jpayne@68: Copyright 1996-2000; for copying conditions see the GNU General jpayne@68: Public Licence. jpayne@68: jpayne@68: This manual page was added by the Dirk Eddelbuettel jpayne@68: , the Debian GNU/Linux maintainer for jpayne@68: .BR GSL .