# HG changeset patch # User Thomas Weber # Date 1211143228 -7200 # Node ID 8c8c7cd544c8389334c8073aa4a59fd287970706 # Parent ce52af0e4a10028397e8c8931ae95fa6a2ef76cd Extend explanation of randn's return value diff -r ce52af0e4a10 -r 8c8c7cd544c8 src/ChangeLog --- a/src/ChangeLog Tue May 13 17:45:35 2008 +0200 +++ b/src/ChangeLog Sun May 18 22:40:28 2008 +0200 @@ -1,3 +1,7 @@ +2008-05-18 Thomas Weber + + * Extend explanation of randn's return value. + 2008-05-07 John W. Eaton * pt-arg-list.cc, pt-arg-list.h (tree_argument_list::dup): diff -r ce52af0e4a10 -r 8c8c7cd544c8 src/DLD-FUNCTIONS/rand.cc --- a/src/DLD-FUNCTIONS/rand.cc Tue May 13 17:45:35 2008 +0200 +++ b/src/DLD-FUNCTIONS/rand.cc Sun May 18 22:40:28 2008 +0200 @@ -471,8 +471,9 @@ @deftypefnx {Loadable Function} {} randn (@var{n}, @var{m})\n\ @deftypefnx {Loadable Function} {} randn (\"state\", @var{x})\n\ @deftypefnx {Loadable Function} {} randn (\"seed\", @var{x})\n\ -Return a matrix with normally distributed random elements. The\n\ -arguments are handled the same as the arguments for @code{rand}.\n\ +Return a matrix with normally distributed random elements with\n\ +null mean and unitary variance. The arguments are handled the \n\ +same as the arguments for @code{rand}.\n\ \n\ By default, @code{randn} uses a Marsaglia and Tsang Ziggurat technique to\n\ transform from a uniform to a normal distribution. (G. Marsaglia and\n\