File: mean.cat

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (34 lines) | stat: -rw-r--r-- 811 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

mean(1)                        Scilab Function                        mean(1)
NAME
  mean - mean (row mean, column mean) of vector/matrix entries

CALLING SEQUENCE
  y=mean(x)
  y=mean(x,'r')
  y=mean(x,'c')

PARAMETERS

  x         : real vector or matrix

  y         : scalar or vector

DESCRIPTION
  For a vector or a matrix x, y=mean(x)  returns in the scalar y the mean of
  all the entries of x.

  y=mean(x,'r') (or, equivalently, y=mean(x,2)) is the rowwise mean. It
  returns in each entry of the column vector y the mean of each row of x.

  y=mean(x,'c') (or, equivalently, y=mean(x,1)) is the columnwise mean. It
  returns in each entry of the row vector y the mean of each column  of x.

EXAMPLE
  A=[1,2,10;7,7.1,7.01];
  mean(A)
  mean(A,'r')
  mean(A,'c')

SEE ALSO
  sum, median,st_deviation