comparison scripts/statistics/base/median.m @ 9211:f0c3d3fc4903

Simplify Texinfo documentation in .m scripts by removing redundant @iftex calls
author Rik <rdrider0-list@yahoo.com>
date Sun, 17 May 2009 14:39:39 -0700
parents 1bf0ce0930be
children b7b89061bd0e
comparison
equal deleted inserted replaced
9210:a7a9eecc07b5 9211:f0c3d3fc4903
20 ## -*- texinfo -*- 20 ## -*- texinfo -*-
21 ## @deftypefn {Function File} {} median (@var{x}, @var{dim}) 21 ## @deftypefn {Function File} {} median (@var{x}, @var{dim})
22 ## If @var{x} is a vector, compute the median value of the elements of 22 ## If @var{x} is a vector, compute the median value of the elements of
23 ## @var{x}. If the elements of @var{x} are sorted, the median is defined 23 ## @var{x}. If the elements of @var{x} are sorted, the median is defined
24 ## as 24 ## as
25 ## @iftex
26 ## @tex 25 ## @tex
27 ## $$ 26 ## $$
28 ## {\rm median} (x) = 27 ## {\rm median} (x) =
29 ## \cases{x(\lceil N/2\rceil), & $N$ odd;\cr 28 ## \cases{x(\lceil N/2\rceil), & $N$ odd;\cr
30 ## (x(N/2)+x(N/2+1))/2, & $N$ even.} 29 ## (x(N/2)+x(N/2+1))/2, & $N$ even.}
31 ## $$ 30 ## $$
32 ## @end tex 31 ## @end tex
33 ## @end iftex
34 ## @ifnottex 32 ## @ifnottex
35 ## 33 ##
36 ## @example 34 ## @example
37 ## @group 35 ## @group
38 ## x(ceil(N/2)), N odd 36 ## x(ceil(N/2)), N odd