octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #49040] lscov test failure


From: Hartmut
Subject: [Octave-bug-tracker] [bug #49040] lscov test failure
Date: Fri, 4 Nov 2016 16:50:13 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

Follow-up Comment #5, bug #49040 (project octave):

I have just compiled 
* octave-4.2.0-rc3
* via an up-to-date mxe-octave
* and compilation done on an Ubuntu 14.04. system.

Letting this Octave run the test suite on WindowsXP gives me a failure of
"test lscov.m" to my very surprise.

Running the official Windows installer of Octave 4.2.0-rc3 on the very same
WinXP machine passes this test. (But this official Windows installer was
obviously compiled on a different computer.)

Here is the relevant part of the fntest.log :


>>>>> processing
E:\octave-2016-11-04-12-41_rc3-ohne-65001patch\share\octave\4.2.0-rc3\m\statistics\base\lscov.m
***** test
 ## Adapted from example in Matlab documentation
 x1 = [.2 .5 .6 .8 1.0 1.1]';
 x2 = [.1 .3 .4 .9 1.1 1.4]';
 X = [ones(size(x1)) x1 x2];
 y = [.17 .26 .28 .23 .27 .34]';
 [b, se_b, mse, S] = lscov(X, y);
 assert(b, [0.1203 0.3284 -0.1312]', 1E-4);
 assert(se_b, [0.0643 0.2267 0.1488]', 1E-4);
 assert(mse, 0.0015, 1E-4);
 assert(S, [0.0041 -0.0130 0.0075; -0.0130 0.0514 -0.0328; 0.0075 -0.0328
0.0221], 1E-4);
 w = [1 1 1 1 1 .1]';
 [bw, sew_b, msew] = lscov (X, y, w);
 assert(bw, [0.1046 0.4614 -0.2621]', 1E-4);
 assert(sew_b, [0.0309 0.1152 0.0814]', 1E-4);
 assert(msew, 3.4741e-004, -1E-4);
 V = .2*ones(length(x1)) + .8*diag(ones(size(x1)));
 [bg, sew_b, mseg] = lscov (X, y, V);
 assert(bg, [0.1203 0.3284 -0.1312]', 1E-4);
 assert(sew_b, [0.0672 0.2267 0.1488]', 1E-4);
 assert(mseg, 0.0019, 1E-4);
 y2 = [y 2*y];
 [b2, se_b2, mse2, S2] = lscov (X, y2);
 assert(b2, [b 2*b], 2*eps);
 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 failed
ASSERT errors for:  assert (se_b2,[se_b, 2 * se_b],eps)

  Location  |  Observed  |  Expected  |  Reason
   (2,2)       0.45338      0.45338      Abs err 4.4409e-016 exceeds tol
2.2204e-016
   (3,2)       0.29757      0.29757      Abs err 2.7756e-016 exceeds tol
2.2204e-016


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49040>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]