- Scilab help
- Statistics
- 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
mad
mean absolute deviation
Calling Sequence
s2=mad(x) s2=mad(x,'r') or s2=mad(x,1) s2=mad(x,'c') or s2=mad(x,2)
Arguments
- x
real or complex vector or matrix
Description
This function computes the mean absolute deviation of a
real or complex vector or matrix x
.
For a vector or matrix x
, s2=mad(x)
returns in scalar s2
the mean absolute deviation
of all the entries of x
.
s2=mad(x,'r')
(or, equivalently, s2=mad(x,1)
)
returns in each entry of the column vector s2
the mean absolute deviation of each column of x
.
s2=mad(x,'c')
(or, equivalently, s2=mad(x,2)
)
returns in each entry of the column vector s2
the mean absolute deviation of each row of x
.
Bibliography
Reference: Wonacott T.H.& Wonacott R.J. .- Introductory Statistics, 5th edition, John Wiley, 1990.
<< iqr | Statistics | mean >> |