Mercurial > hg > octave-lyh
comparison scripts/statistics/base/studentize.m @ 3458:d25bc039237b
[project @ 2000-01-19 09:36:14 by jwe]
author | jwe |
---|---|
date | Wed, 19 Jan 2000 09:36:28 +0000 |
parents | 434790acb067 |
children | 38c61cbf086c |
comparison
equal
deleted
inserted
replaced
3457:e031284eea27 | 3458:d25bc039237b |
---|---|
40 elseif is_matrix (x) | 40 elseif is_matrix (x) |
41 l = ones (rows (x), 1); | 41 l = ones (rows (x), 1); |
42 t = x - l * mean (x); | 42 t = x - l * mean (x); |
43 t = t ./ (l * max ([(std (t)); (! any (t))])); | 43 t = t ./ (l * max ([(std (t)); (! any (t))])); |
44 else | 44 else |
45 error ("studentize: x must be a vector or a matrix."); | 45 error ("studentize: x must be a vector or a matrix"); |
46 endif | 46 endif |
47 | 47 |
48 endfunction | 48 endfunction |