moment(a,i)

Returns the ith moment of the values stored in array a.

moment(A,i)

Returns an array with the ith moment of each column of matrix A.


See also kstatistic variance 


Example


a = ( 1, 2, 1, 5, 7 );

moment(a,3)

7.536