comparison scripts/statistics/base/mean.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
23 ## @iftex 23 ## @iftex
24 ## @tex 24 ## @tex
25 ## $$ {\rm mean}(x) = \bar{x} = {1\over N} \sum_{i=1}^N x_i $$ 25 ## $$ {\rm mean}(x) = \bar{x} = {1\over N} \sum_{i=1}^N x_i $$
26 ## @end tex 26 ## @end tex
27 ## @end iftex 27 ## @end iftex
28 ## @ifinfo 28 ## @ifnottex
29 ## 29 ##
30 ## @example 30 ## @example
31 ## mean (x) = SUM_i x(i) / N 31 ## mean (x) = SUM_i x(i) / N
32 ## @end example 32 ## @end example
33 ## @end ifinfo 33 ## @end ifnottex
34 ## If @var{x} is a matrix, compute the mean for each column and return them 34 ## If @var{x} is a matrix, compute the mean for each column and return them
35 ## in a row vector. 35 ## in a row vector.
36 ## 36 ##
37 ## With the optional argument @var{opt}, the kind of mean computed can be 37 ## With the optional argument @var{opt}, the kind of mean computed can be
38 ## selected. The following options are recognized: 38 ## selected. The following options are recognized: