bugGNU Octave - Bugs: bug #43377, interp1: implement next and...

 
 

bug #43377: interp1: implement next and previous neighbor interpolation

Submitted by:  Nir Krakauer <nir_krakauer>
Submitted on:  Tue 07 Oct 2014 10:34:31 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 31 Oct 2014 12:52:04 AM UTC, comment #4:

I added parentheses around the conditional being tested in an if block,

since that's the Octave convention. I also added a note about this to the NEWS file since it is cool that we have new features.

Closing report.

Rik <rik5>
Project Administrator
Wed 29 Oct 2014 01:15:38 PM UTC, comment #3:

Yes, here are the changes against http://hg.savannah.gnu.org/hgweb/octave/file/64f034147e9a/scripts/general/interp1.m

(file #32336, file #32337)

Nir Krakauer <nir_krakauer>
Wed 29 Oct 2014 12:06:03 AM UTC, comment #2:

@Nir: This seems like a good addition. Could you make a changeset that applies against the current development version of interp1.m? I downloaded the attached interp1.m but it seems to have been created against an older revision and there were a lot of differences. Enough differences that I didn't want to try and wade through and figure out which were your changes to support "next" and "previous" and which were differences between Octave revisions.

Rik <rik5>
Project Administrator
Sun 12 Oct 2014 03:48:41 PM UTC, comment #1:

I propose modifying interp1 to include these options -- see the attached

(file #32259)

Nir Krakauer <nir_krakauer>
Tue 07 Oct 2014 10:34:31 PM UTC, original submission:

The options "next" and "previous" are new in Matlab [1] and may be useful (similar to ceil/floor compared to round)

[1] http://www.mathworks.com/help/matlab/ref/interp1.html

Nir Krakauer <nir_krakauer>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #32336:  interp1.m added by nir_krakauer (28KiB - text/x-objcsrc)
file #32337:  interp1_diff.txt added by nir_krakauer (7KiB - text/plain)
file #32259:  interp1.m added by nir_krakauer (27KiB - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by nir_krakauer (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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 31 Oct 2014 12:52:04 AM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Wed 29 Oct 2014 01:15:38 PM UTCnir_krakauerAttached File-=>Added interp1.m, #32336
      Attached File-=>Added interp1_diff.txt, #32337
    Sun 12 Oct 2014 03:48:41 PM UTCnir_krakauerAttached File-=>Added interp1.m, #32259

    Back to the top


    Powered by Savane 3.1-cleanup1