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

 
 

bug #59568: [octave forge] (signal) buffer generates an extra output column in some cases

Submitted by:  None
Submitted on:  Sat 28 Nov 2020 09:16:06 AM UTC  
 
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Paolo Vicari Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  other
Operating System:  Microsoft Windows

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Sun 29 Nov 2020 07:05:31 PM UTC, comment #2: 

cc'ing package maintainer.

Philip Nienhuis <philipnienhuis>
Project Member
Sat 28 Nov 2020 04:12:35 PM UTC, comment #1: 

FWIW, I can confirm the OP's observations in Octave-dev and Matlab r2020b.

Philip Nienhuis <philipnienhuis>
Project Member
Sat 28 Nov 2020 09:16:06 AM UTC, original submission:  

Dear Octave team,

The buffer() function in package 'signal-1.4.1' gives incorrect results (a wrongly sized output) with some specific parameter combinations.

The issue seems to be due to a wrong computation of the number of output columns when the 'overlap' parameter is specified, resulting in an extra column being output.

I can provide two verified cases of inconsistencies with Matlab R2017a:

buffer((1:16).', 8, 6, 'nodelay') outputs a matrix with 6 columns in Octave, versus 5 in Matlab R2017a.

buffer((1:16).', 8, 7, 'nodelay') outputs a matrix with 10 columns in Octave, versus 9 in Matlab R2017a.

The wrongly sized output causes errors in functions which use the buffer() function to generate data autocorrelation matrices (like Matlab's corrmtx).

Thank you for your support,
Paolo

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 mmuetzel (Updated the item)
  • -email is unavailable- added by None (Submitted the item)
  •  

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

    Only project members can vote.

     

     

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-12-03 mtmiller StatusNone => Confirmed
    2020-11-30 mtmiller Carbon-CopyRemoved mtmiller => -
    2020-11-29 philipnienhuis Carbon-Copy- => Added mtmiller
    2020-11-28 mtmiller Summary[octave forge] (signal) The buffer() function generates an extra output column in some cases => [octave forge] (signal) buffer generates an extra output column in some cases
    2020-11-28 mmuetzel Release5.2.0 => other
        SummaryThe signal:buffer() function generates an extra output column in some cases => [octave forge] (signal) The buffer() function generates an extra output column in some cases

    Back to the top


    Powered by Savane 3.5