Mercurial > octave
diff 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 |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/rand.cc Sun May 18 22:14:45 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 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\