Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Português do Brasil - 日本語 - English
Aide Scilab >> Statistiques > mad

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 Statistiques mean >>

Consortium Scilab (DIGITEO)
Scilab Enterprises

Copyright (c) 2011-2012 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Oct 05 12:10:58 CEST 2011