central moments of all orders
mom=cmoment(x,ord) mom=cmoment(x,ord,'r') or mom=cmoment(x,ord,1) mom=cmoment(x,ord,'c') or mom=cmoment(x,ord,2)
real or complex vector or matrix
positive integer
cmoment(x,ord) is the central moment or order ord of
the elements of x.
If a third argument of type string 'r' (or
1) or 'c' (or 2) is used, we get in the
first case, a row vector mom such that
mom(j) contains the central moment of order
ord of the j column of
x. cmoment(x,ord,'c') is used in the same way
for the central moments in the rows.
Wonacott, T.H. & Wonacott, R.J.; Introductory Statistics, J.Wiley & Sons, 1990.