bugGNU Octave - Bugs: bug #54553, [octave forge] (statistics) Unit...

 
 

bug #54553: [octave forge] (statistics) Unit test in ttest.m fails on i386

Submitter:  Rafael Laboissière <rlaboiss>
Submitted:  Wed 22 Aug 2018 08:12:48 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  lostbard
Originator Name:  Open/Closed:  * Closed
Release:  * other Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 28 Aug 2018 02:51:18 PM UTC, comment #2: 

closing as fixed

John Donoghue <lostbard>
Group Member
Wed 22 Aug 2018 09:04:27 PM UTC, comment #1: 
John Donoghue <lostbard>
Group Member
Wed 22 Aug 2018 08:12:48 PM UTC, original submission:  

The unit test in file inst/ttest.m of the statistics package (version 1.4.0) fails on the i386 architecture:


octave:1> pkg load statistics
octave:2> x = 8:0.1:12;
octave:3> [h, pval, ci] = ttest (x, 10);
octave:4> assert (h, 0)
octave:5> assert (pval, 1, 10*eps)
octave:6> assert (ci, [9.6219 10.3781], 1E-5)
octave:7> [h, pval, ci0] = ttest (x, 0);
octave:8> assert (h, 1)
octave:9> assert (pval, 0)
octave:10> assert (ci0, ci)
error: ASSERT errors for:  assert (ci0,ci)

  Location  |  Observed  |  Expected  |  Reason
    (2)        10.3781      10.3781      Abs err 1.7764e-15 exceeds tol 0 by 2e-15


This happens because of this:


octave:11> format long
octave:12> ci
ci =

   9.621891416831676e+00   1.037810858316833e+01

octave:13> ci0
ci0 =

   9.621891416831676e+00   1.037810858316832e+01


This problem has been reported as a bug against the Debian package octave-statistics (Bug#906820).

The patch attached to the present bug report fixes the problem.

Rafael Laboissière <rlaboiss>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #44826:  ttest-tolerance.patch added by rlaboiss (539B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by rlaboiss (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-08-28 lostbard StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2018-08-22 lostbard StatusNone Ready For Test
        Assigned toNone lostbard
    2018-08-22 rlaboiss Attached File- Added ttest-tolerance.patch, #44826

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code