Mercurial > octave-nkf
comparison scripts/statistics/base/spearman.m @ 14336:34af9f9ff98b
Use Octave coding conventions (double-quote " in preference to single quote ')
* center.m, corr.m, cov.m, iqr.m, kendall.m, spearman.m, std.m, var.m:
Use Octave coding conventions (double-quote " in preference to single quote ')
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 05 Feb 2012 15:46:02 -0800 |
parents | 72c96de7a403 |
children | f3d52523cde1 |
comparison
equal
deleted
inserted
replaced
14335:ce2b59a6d0e5 | 14336:34af9f9ff98b |
---|---|
67 endif | 67 endif |
68 rho = corr (ranks (x), ranks (y)); | 68 rho = corr (ranks (x), ranks (y)); |
69 endif | 69 endif |
70 | 70 |
71 ## Restore class cleared by ranks | 71 ## Restore class cleared by ranks |
72 if (isa (x, 'single') || isa (y, 'single')) | 72 if (isa (x, "single") || isa (y, "single")) |
73 rho = single (rho); | 73 rho = single (rho); |
74 endif | 74 endif |
75 | 75 |
76 endfunction | 76 endfunction |
77 | 77 |