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

« back to all changes in this revision

Viewing changes to man/elementary/mean.cat

  • 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
mean             Scilab Group             Scilab Function              mean
 
2
NAME
 
3
   mean - mean (row mean, column mean) of vector/matrix entries
 
4
  
 
5
CALLING SEQUENCE
 
6
 y=mean(x)
 
7
 y=mean(x,'r')
 
8
 y=mean(x,'c')
 
9
PARAMETERS
 
10
 x          : real vector or matrix 
 
11
            
 
12
 y          : scalar or vector
 
13
            
 
14
DESCRIPTION
 
15
   For a vector or a matrix x, y=mean(x)  returns in the scalar y the mean
 
16
  of all the entries of x.
 
17
  
 
18
   y=mean(x,'r') (or, equivalently, y=mean(x,1)) is the rowwise mean. It
 
19
  returns in each  entry of the column vector y the mean of each row of x.
 
20
  
 
21
    y=mean(x,'c') (or, equivalently, y=mean(x,2)) is the columnwise mean. It
 
22
  returns in each entry of the row vector  y the mean of each column  of x.
 
23
  
 
24
EXAMPLE
 
25
 A=[1,2,10;7,7.1,7.01];
 
26
 mean(A)
 
27
 mean(A,'r')
 
28
 mean(A,'c')
 
29
SEE ALSO
 
30
   sum, median,st_deviation
 
31