Mercurial > hg > octave-jordi
changeset 19369:cc7931e8953d
lscov.m: increase test tolerance so that they pass (bug #43118)
* lscov.m: set tolerance to eps for all tests.
author | Doug Stewart <doug.dastew@gmail.com |
---|---|
date | Sat, 29 Nov 2014 21:54:51 -0500 |
parents | 2218dd129a6b |
children | 009191dbc76d |
files | scripts/statistics/base/lscov.m |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/statistics/base/lscov.m +++ b/scripts/statistics/base/lscov.m @@ -172,10 +172,10 @@ %! y2 = [y 2*y]; %! [b2, se_b2, mse2, S2] = lscov (X, y2); %! assert(b2, [b 2*b], eps) -%! assert(se_b2, [se_b 2*se_b]) -%! assert(mse2, [mse 4*mse]) -%! assert(S2(:, :, 1), S) -%! assert(S2(:, :, 2), 4*S) +%! assert(se_b2, [se_b 2*se_b], eps) +%! assert(mse2, [mse 4*mse], eps) +%! assert(S2(:, :, 1), S, eps) +%! assert(S2(:, :, 2), 4*S, eps) %!test %! ## Artificial example with positive semidefinite weight matrix