Mercurial > octave
diff scripts/statistics/skewness.m @ 2311:2b5788792cad
[project @ 1996-07-11 20:18:38 by jwe]
author | jwe |
---|---|
date | Thu, 11 Jul 1996 20:18:38 +0000 |
parents | 5cffc4b8de57 |
children | 204cc7db6f4a |
line wrap: on
line diff
--- a/scripts/statistics/skewness.m Thu Jul 11 20:02:03 1996 +0000 +++ b/scripts/statistics/skewness.m Thu Jul 11 20:18:38 1996 +0000 @@ -17,18 +17,18 @@ ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA ### 02111-1307, USA. -function retval = skewness (x) +## usage: skewness (x) +## +## If x is a vector of length N, return the skewness +## +## skewness (x) = N^(-1) std(x)^(-3) SUM_i (x(i)-mean(x))^3 +## +## of x. +## +## If x is a matrix, return a row vector containing the skewness for each +## column. - ## usage: skewness (x) - ## - ## If x is a vector of length N, return the skewness - ## - ## skewness (x) = N^(-1) std(x)^(-3) SUM_i (x(i)-mean(x))^3 - ## - ## of x. - ## - ## If x is a matrix, return a row vector containing the skewness for each - ## column. +function retval = skewness (x) ## Written by KH (Kurt.Hornik@ci.tuwien.ac.at) on Jul 29, 1994.