Mercurial > hg > octave-lyh
comparison scripts/statistics/base/median.m @ 3426:f8dde1807dee
[project @ 2000-01-13 08:40:00 by jwe]
author | jwe |
---|---|
date | Thu, 13 Jan 2000 08:40:53 +0000 |
parents | ae7adbb591e8 |
children | 404c7122853e |
comparison
equal
deleted
inserted
replaced
3425:8625164a0a39 | 3426:f8dde1807dee |
---|---|
29 ## (x(N/2)+x(N/2+1))/2, & $N$ even.} | 29 ## (x(N/2)+x(N/2+1))/2, & $N$ even.} |
30 ## $$ | 30 ## $$ |
31 ## @end tex | 31 ## @end tex |
32 ## @end iftex | 32 ## @end iftex |
33 ## @ifinfo | 33 ## @ifinfo |
34 ## | 34 ## |
35 ## @example | 35 ## @example |
36 ## @group | 36 ## @group |
37 ## x(ceil(N/2)), N odd | 37 ## x(ceil(N/2)), N odd |
38 ## median(x) = | 38 ## median(x) = |
39 ## (x(N/2) + x((N/2)+1))/2, N even | 39 ## (x(N/2) + x((N/2)+1))/2, N even |
40 ## @end group | 40 ## @end group |
41 ## @end example | 41 ## @end example |
42 ## @end ifinfo | 42 ## @end ifinfo |
43 ## If @var{x} is a matrix, compute the median value for each | 43 ## If @var{x} is a matrix, compute the median value for each |