Mercurial > octave-nkf
comparison scripts/statistics/base/median.m @ 8517:81d6ab3ac93c
Allow documentation tobe built for other formats than tex and info
author | sh@sh-laptop |
---|---|
date | Wed, 14 Jan 2009 20:44:25 -0500 |
parents | 83a8781b529d |
children | eb63fbe60fab |
comparison
equal
deleted
inserted
replaced
8516:e2a179415bac | 8517:81d6ab3ac93c |
---|---|
29 ## \cases{x(\lceil N/2\rceil), & $N$ odd;\cr | 29 ## \cases{x(\lceil N/2\rceil), & $N$ odd;\cr |
30 ## (x(N/2)+x(N/2+1))/2, & $N$ even.} | 30 ## (x(N/2)+x(N/2+1))/2, & $N$ even.} |
31 ## $$ | 31 ## $$ |
32 ## @end tex | 32 ## @end tex |
33 ## @end iftex | 33 ## @end iftex |
34 ## @ifinfo | 34 ## @ifnottex |
35 ## | 35 ## |
36 ## @example | 36 ## @example |
37 ## @group | 37 ## @group |
38 ## x(ceil(N/2)), N odd | 38 ## x(ceil(N/2)), N odd |
39 ## median(x) = | 39 ## median(x) = |
40 ## (x(N/2) + x((N/2)+1))/2, N even | 40 ## (x(N/2) + x((N/2)+1))/2, N even |
41 ## @end group | 41 ## @end group |
42 ## @end example | 42 ## @end example |
43 ## @end ifinfo | 43 ## @end ifnottex |
44 ## If @var{x} is a matrix, compute the median value for each | 44 ## If @var{x} is a matrix, compute the median value for each |
45 ## column and return them in a row vector. If the optional @var{dim} | 45 ## column and return them in a row vector. If the optional @var{dim} |
46 ## argument is given, operate along this dimension. | 46 ## argument is given, operate along this dimension. |
47 ## @seealso{std, mean} | 47 ## @seealso{std, mean} |
48 ## @end deftypefn | 48 ## @end deftypefn |