comparison src/DLD-FUNCTIONS/rand.cc @ 7780:08125419efcb

Extend explanation of randn's return value
author Thomas Weber <thomas.weber.mail@gmail.com>
date Sun, 18 May 2008 22:40:28 +0200
parents ff52243af934
children b93ac0586e4b
comparison
equal deleted inserted replaced
7779:791231dac333 7780:08125419efcb
469 "-*- texinfo -*-\n\ 469 "-*- texinfo -*-\n\
470 @deftypefn {Loadable Function} {} randn (@var{x})\n\ 470 @deftypefn {Loadable Function} {} randn (@var{x})\n\
471 @deftypefnx {Loadable Function} {} randn (@var{n}, @var{m})\n\ 471 @deftypefnx {Loadable Function} {} randn (@var{n}, @var{m})\n\
472 @deftypefnx {Loadable Function} {} randn (\"state\", @var{x})\n\ 472 @deftypefnx {Loadable Function} {} randn (\"state\", @var{x})\n\
473 @deftypefnx {Loadable Function} {} randn (\"seed\", @var{x})\n\ 473 @deftypefnx {Loadable Function} {} randn (\"seed\", @var{x})\n\
474 Return a matrix with normally distributed random elements. The\n\ 474 Return a matrix with normally distributed pseudo-random\n\
475 arguments are handled the same as the arguments for @code{rand}.\n\ 475 elements having zero mean and variance one. The arguments are\n\
476 handled the same as the arguments for @code{rand}.\n\
476 \n\ 477 \n\
477 By default, @code{randn} uses a Marsaglia and Tsang Ziggurat technique to\n\ 478 By default, @code{randn} uses a Marsaglia and Tsang Ziggurat technique to\n\
478 transform from a uniform to a normal distribution. (G. Marsaglia and\n\ 479 transform from a uniform to a normal distribution. (G. Marsaglia and\n\
479 W.W. Tsang, 'Ziggurat method for generating random variables',\n\ 480 W.W. Tsang, 'Ziggurat method for generating random variables',\n\
480 J. Statistical Software, vol 5, 2000,\n\ 481 J. Statistical Software, vol 5, 2000,\n\