~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to man/elementary/mean.man

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.TH mean 1 "Januray 1998" "Scilab Group" "Scilab Function"
 
2
.so ../sci.an
 
3
.SH NAME
 
4
mean - mean (row mean, column mean) of vector/matrix entries
 
5
.SH CALLING SEQUENCE
 
6
.nf
 
7
y=mean(x)
 
8
y=mean(x,'r')
 
9
y=mean(x,'c')
 
10
.fi
 
11
.SH PARAMETERS
 
12
.TP 10
 
13
x
 
14
: real vector or matrix 
 
15
.TP 10
 
16
y
 
17
: scalar or vector
 
18
.SH DESCRIPTION
 
19
For a vector or a matrix \fVx\fR, \fVy=mean(x)\fR  returns in the
 
20
scalar \fVy\fR the mean of all the entries of \fVx\fR.
 
21
.LP
 
22
\fVy=mean(x,'r')\fR (or, equivalently, \fVy=mean(x,1)\fR) is the rowwise mean. It returns in each 
 
23
entry of the column vector \fVy\fR the mean of each row of \fVx\fR.
 
24
.LP
 
25
 
 
26
\fVy=mean(x,'c')\fR (or, equivalently, \fVy=mean(x,2)\fR) is the columnwise mean. It returns in each entry of the row vector 
 
27
\fVy\fR the mean of each column  of \fVx\fR.
 
28
.SH EXAMPLE
 
29
.nf
 
30
A=[1,2,10;7,7.1,7.01];
 
31
mean(A)
 
32
mean(A,'r')
 
33
mean(A,'c')
 
34
.fi
 
35
.SH SEE ALSO
 
36
sum, median,st_deviation