Mercurial > octave-nkf
diff scripts/statistics/tests/u_test.m @ 3273:eb27ea9b7ff8
[project @ 1999-10-12 02:22:25 by jwe]
author | jwe |
---|---|
date | Tue, 12 Oct 1999 02:27:27 +0000 |
parents | 781c930425fd |
children | f8dde1807dee |
line wrap: on
line diff
--- a/scripts/statistics/tests/u_test.m Tue Oct 12 02:19:17 1999 +0000 +++ b/scripts/statistics/tests/u_test.m Tue Oct 12 02:27:27 1999 +0000 @@ -52,7 +52,7 @@ n_x = length (x); n_y = length (y); - r = ranks ([reshape (x, 1, n_x), reshape (y, 1, n_y)]); + r = ranks ([(reshape (x, 1, n_x)), (reshape (y, 1, n_y))]); z = (sum (r(1 : n_x)) - n_x * (n_x + n_y + 1) / 2) ... / sqrt (n_x * n_y * (n_x + n_y + 1) / 12);