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

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

[Octave-bug-tracker] [bug #41386] interp1 fails with discontinuities


From: Rik
Subject: [Octave-bug-tracker] [bug #41386] interp1 fails with discontinuities
Date: Thu, 30 Jan 2014 17:39:33 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0

Follow-up Comment #3, bug #41386 (project octave):

I'm adding Ben Abbott to the list since he was the one who wrote the checking
code for monotonicity.  It appears to me that it is safe to change the error
message on line 210 back to a warning as it was in 3.6.4.

I created two data sets: (x1d, y1d) with one discontinuity at x == 1, and
(x3d, y3d) with two discontinuities at x == 1.  When I temporarily disable
line 210 and run the interpolations for both 'left' and 'right' I get the same
answer regardless of the number of "jumps" at the disconuity point.

I'm attaching tst.var which is an Octave file with the variables needed to run
the test.

Sample:


load tst.var
yi_1left = interp1 (x1d, y1d, 'linear', 'left')
yi_3left = interp1 (x3d, y3d, 'linear', 'left')
isequal (yi_1left, yi_3left)


Maybe is bug #40825 is fixed this would somehow change the results.


(file #30422)
    _______________________________________________________

Additional Item Attachment:

File name: tst.var                        Size:0 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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