bugGNU Octave - Bugs: bug #43560, interp2 with decreasing inputs and...

 
 

bug #43560: interp2 with decreasing inputs and 'linear' method

Submitted by:  John Hunt <huntj>
Submitted on:  Sat 08 Nov 2014 12:43:12 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: NoneAssigned to: None
Originator Name: Open/Closed: Open
Release: 3.8.2Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 16 Dec 2016 10:29:42 PM UTC, comment #1:

This issue might be FIXED in Octave 4.2.0.

When I run the script from comment #0 then I get the following result:
It does not contain any NaNs any more. And the result is the very same as with the options "cubic" or "spline" instead of "linear".

Hartmut <hardy>
Sat 08 Nov 2014 12:43:12 PM UTC, original submission:

interp2 problems with decreasing inputs yield NA when "linear" method is used. This is similar to bug #36351: interp2 run from high to low. With 'cubic' or 'spline' the problem does not occur.

Here is a code sample displaying the problem.

Which yields

Either the documentation should specify that x and y should be increasing, or the sort performed for 'linear' method also.

Meanwhile, a workaround can be found here.

John Hunt <huntj>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by hardy (Posted a comment)
  • -unavailable- added by mtmiller (Updated the item)
  • -unavailable- added by huntj (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 22 Feb 2015 06:45:08 PM UTCmtmillerCategoryNone=>Octave Function
      Item GroupNone=>Incorrect Result

    Back to the top


    Powered by Savane 3.1-cleanup1