Mercurial > octave-nkf
diff scripts/statistics/base/skewness.m @ 17590:a53a97faf61a
skewness.m: Fix comment
* scripts/statistics/base/skewness.m: Fix comment
author | Julien Bect <julien.bect@supelec.fr> |
---|---|
date | Mon, 07 Oct 2013 21:10:36 +0200 |
parents | a13ff4521538 |
children | 8f2f8c9b2620 |
line wrap: on
line diff
--- a/scripts/statistics/base/skewness.m Mon Oct 07 13:01:25 2013 -0700 +++ b/scripts/statistics/base/skewness.m Mon Oct 07 21:10:36 2013 +0200 @@ -117,7 +117,7 @@ y(idx) ./= (n * s(idx) .^ 3); y(! idx) = NaN; - ## Apply bias correction to the third central sample moment + ## Apply bias correction to the second and third central sample moment if (flag == 0) if (n > 2) y *= sqrt (n * (n - 1)) / (n - 2); @@ -165,4 +165,3 @@ %!error <DIM must be an integer> skewness (1, [], 1.5) %!error <DIM must be .* a valid dimension> skewness (1, [], 0) %!error <DIM must be .* a valid dimension> skewness (1, [], 3) -