Mercurial > octave-nkf
diff scripts/statistics/base/kurtosis.m @ 11587:c792872f8942
all script files: untabify and strip trailing whitespace
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:35:29 -0500 |
parents | fd0a3ac60b0e |
children | d0b799dafede |
line wrap: on
line diff
--- a/scripts/statistics/base/kurtosis.m Thu Jan 20 17:24:59 2011 -0500 +++ b/scripts/statistics/base/kurtosis.m Thu Jan 20 17:35:29 2011 -0500 @@ -36,9 +36,9 @@ ## If @var{x} is a matrix, return the kurtosis over the ## first non-singleton dimension of the matrix. If the optional ## @var{dim} argument is given, operate along this dimension. -## +## ## Note: The definition of kurtosis above yields a kurtosis of zero for the -## stdnormal distribution and is sometimes referred to as "excess kurtosis". +## stdnormal distribution and is sometimes referred to as "excess kurtosis". ## To calculate kurtosis without the normalization factor of @math{-3} use ## @code{moment (@var{x}, 4, 'c') / std (@var{x})^4}. ## @seealso{var,skewness,moment} @@ -72,7 +72,7 @@ error ("kurtosis: DIM must be an integer and a valid dimension"); endif endif - + c = sz(dim); sz(dim) = 1; idx = ones (1, nd);