[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46644] splines: Relax unit test in
From: |
Rafael Laboissiere |
Subject: |
[Octave-bug-tracker] [bug #46644] splines: Relax unit test in |
Date: |
Wed, 09 Dec 2015 18:36:10 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?46644>
Summary: splines: Relax unit test in
Project: GNU Octave
Submitted by: rlaboiss
Submitted on: Wed 09 Dec 2015 06:36:09 PM GMT
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Regression
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: other
Operating System: Any
_______________________________________________________
Details:
all the unit tests in tps_val.m worked in version 1.2.8 of the splines
package. In version 1.2.9, the first unit test fails:
octave:2> pkg load splines
octave:3> test tps_val
***** assert (tpaps(x,y,1,x), tps_val(x,c,x));
x = rand(100, 2)*2 - 1;
y = x(:, 1) .^ 2 + x(:, 2) .^ 2;
c = tpaps(x,y,1);
!!!!! test failed
ASSERT errors for: assert (tpaps (x, y, 1, x),tps_val (x, c, x))
Location | Observed | Expected | Reason
(1) 0.84147 0.84147 Abs err 1.2212e-15 exceeds tol 0
(2) 0.9093 0.9093 Abs err 8.8818e-16 exceeds tol 0
(4) -0.7568 -0.7568 Abs err 6.6613e-16 exceeds tol 0
(5) -0.95892 -0.95892 Abs err 6.6613e-16 exceeds tol 0
(6) -0.27942 -0.27942 Abs err 3.3307e-16 exceeds tol 0
(8) 0.98936 0.98936 Abs err 4.4409e-16 exceeds tol 0
(9) 0.41212 0.41212 Abs err 4.4409e-16 exceeds tol 0
(10) -0.54402 -0.54402 Abs err 2.6645e-15 exceeds tol 0
(12) -0.95402 -0.95402 Abs err 1.1102e-15 exceeds tol 0
The trivial cset attached to this bug report fixes the problem.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 09 Dec 2015 06:36:09 PM GMT Name: relax-unit-test-tps-val.diff
Size: 722B By: rlaboiss
<http://savannah.gnu.org/bugs/download.php?file_id=35679>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46644>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #46644] splines: Relax unit test in,
Rafael Laboissiere <=