Mercurial > octave-libgccjit
diff scripts/statistics/base/median.m @ 6754:451b346d8c2f
[project @ 2007-06-25 17:31:46 by jwe]
author | jwe |
---|---|
date | Mon, 25 Jun 2007 17:31:47 +0000 |
parents | 34f96dd5441b |
children | 93c65f2a5668 |
line wrap: on
line diff
--- a/scripts/statistics/base/median.m Mon Jun 25 17:05:58 2007 +0000 +++ b/scripts/statistics/base/median.m Mon Jun 25 17:31:47 2007 +0000 @@ -18,9 +18,10 @@ ## 02110-1301, USA. ## -*- texinfo -*- -## @deftypefn {Function File} {} median (@var{x}) +## @deftypefn {Function File} {} median (@var{x}, @var{dim}) ## If @var{x} is a vector, compute the median value of the elements of -## @var{x}. +## @var{x}. If the elements of @var{x} are sorted, the median is defined +## as ## @iftex ## @tex ## $$ @@ -41,7 +42,8 @@ ## @end example ## @end ifinfo ## If @var{x} is a matrix, compute the median value for each -## column and return them in a row vector. +## column and return them in a row vector. If the optional @var{dim} +## argument is given, operate along this dimension. ## @seealso{std, mean} ## @end deftypefn