Scilab 5.3.3
- Ajuda Scilab
- Estatística
- cdfbet
- cdfbin
- cdfchi
- cdfchn
- cdff
- cdffnc
- cdfgam
- cdfnbn
- cdfnor
- cdfpoi
- cdft
- center
- wcenter
- cmoment
- correl
- covar
- ftest
- ftuneq
- geomean
- harmean
- iqr
- mad
- mean
- meanf
- median
- moment
- msd
- mvvacov
- nancumsum
- nand2mean
- nanmax
- nanmean
- nanmeanf
- nanmedian
- nanmin
- nanstdev
- nansum
- nfreq
- pca
- perctl
- princomp
- quart
- regress
- sample
- samplef
- samwr
- show_pca
- st_deviation
- stdevf
- strange
- tabul
- thrownan
- trimmean
- variance
- variancef
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
mean
mean (row mean, column mean) of vector/matrix entries
Calling Sequence
y=mean(x) y=mean(x,'r') y=mean(x,'c') y=mean(x,'m')
Arguments
- 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,1)
)
is the rowwise mean. It returns a row vector: y(j)=
mean(x(:,j))
y=mean(x,'c')
(or, equivalently, y=mean(x,2)
)
is the columnwise mean. It returns a column vector: y(i)=
mean(x(i,:))
y=mean(x,'m')
is the mean along the first non singleton
dimension of x (for compatibility with Matlab).
Examples
A=[1,2,10;7,7.1,7.01]; mean(A) mean(A,'r') mean(A,'c') A=matrix(1:12,[1,1,2,3,2]); // in this case mean(A,'m') is equivalent to mean(A,3), the first non singleton dimension of A y=mean(A,'m')
See Also
- sum — soma (soma linha, soma coluna) de entradas de um vetor ou matriz
- median — median (row median, column median,...) of vector/matrix/array entries
- st_deviation — standard deviation (row or column-wise) of vector/matrix entries
<< mad | Estatística | meanf >> |