Mercurial > hg > octave-lyh
diff scripts/statistics/base/statistics.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/statistics.m +++ b/scripts/statistics/base/statistics.m @@ -23,7 +23,7 @@ ## maximum, mean, standard deviation, skewness, and kurtosis of the elements of ## the vector @var{x}. ## -## If @var{x} is a matrix, calculate statistics over the first +## If @var{x} is a matrix, calculate statistics over the first ## non-singleton dimension. ## If the optional argument @var{dim} is given, operate along this dimension. ## @seealso{min,max,median,mean,std,skewness,kurtosis} @@ -56,10 +56,10 @@ error ("statistics: DIM must be an integer and a valid dimension"); endif endif - + if (sz(dim) < 2) error ("statistics: dimension of X is too small (<2)"); - endif + endif emp_inv = quantile (x, [0.25; 0.5; 0.75], dim, 7);