bugGNU Octave - Bugs: bug #42986, [octave forge] (signal) buffer...

 
 

bug #42986: [octave forge] (signal) buffer don't accept overlap > half window size

Submitter:  None
Submitted:  Thu 14 Aug 2014 01:50:09 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  mtmiller
Originator Name:  jy bernier Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * other
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 04 Apr 2018 01:13:08 AM UTC, comment #4: 

This is fixed in the signal package repository

https://hg.mtmxr.com/octave-signal/rev/67de7623cc39

Mike Miller <mtmiller>
Group Member
Fri 30 Jun 2017 05:43:43 PM UTC, comment #3: 

Hey all,

Just a heads up that I'm still having this issue.

Thanks

Andrew Moe <lemonlemons>
Thu 03 Mar 2016 09:31:42 PM UTC, comment #2: 

change line 141 of buffer from

    y (1 : in, off) = opt(off:end);

to

    y (1 : in, off) = opt((end-in+1):end);

Anonymous
Sun 17 Aug 2014 07:55:42 PM UTC, comment #1: 

Thanks for your bug report. I can confirm this in the current development version of the signal package, good catch. Actually p = n-1 works as well, but all values between n/2 + 1 and n-1 do not work.

Mike Miller <mtmiller>
Group Member
Thu 14 Aug 2014 01:50:09 PM UTC, original submission:  

y = buffer (x, n, p, opt)

p : An integer less than n that specifies the under- or overlap between column in the data frame


octave:8> buffer(1:30,6,3)
ans =
    0    1    4    7   10   13   16   19   22   25
    0    2    5    8   11   14   17   20   23   26
    0    3    6    9   12   15   18   21   24   27
    1    4    7   10   13   16   19   22   25   28
    2    5    8   11   14   17   20   23   26   29
    3    6    9   12   15   18   21   24   27   30

octave:9> buffer(1:30,6,4)
error: buffer: A(I,J,...) = X: dimensions mismatch
error: called from:
error:   /opt/local/share/octave/packages/signal-1.2.2/buffer.m at line 141, column 27


buffer(1:1000,100,50) succeeds
buffer(1:1000,100,51) fails

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by lemonlemons (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by None (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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-04 mtmiller StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2017-08-13 jwe Summarysignal package: buffer don't accept overlap &gt; half window size [octave forge] (signal) buffer don't accept overlap > half window size
    2014-08-17 mtmiller Item GroupMatlab Compatibility Incorrect Result
        StatusNone Confirmed
        Assigned toNone mtmiller
        Release3.6.4 other

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code