Mercurial > hg > octave-lyh
changeset 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 | 791231dac333 |
children | 02a7fe6907d2 |
files | src/ChangeLog src/DLD-FUNCTIONS/rand.cc |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-05-20 Thomas Weber <thomas.weber.mail@gmail.com> + + * DLD-FUNCTIONS/rand.cc: Doc fix. + 2008-05-20 David Bateman <dbateman@free.fr> * load-save.cc (do_load): Treat non verbose list_only output in
--- a/src/DLD-FUNCTIONS/rand.cc +++ b/src/DLD-FUNCTIONS/rand.cc @@ -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 pseudo-random\n\ +elements having zero mean and variance one. The arguments are\n\ +handled the 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\