bugGNU Octave - Bugs: bug #44446, signal package: indexing error in...

 
 

bug #44446: signal package: indexing error in findpeaks function

Submitter:  None
Submitted:  Fri 06 Mar 2015 10:27:05 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Duplicate Assigned to:  None
Originator Name:  Christoph Weise 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
   

Fri 06 Mar 2015 02:40:31 PM UTC, comment #1: 

Thanks for your bug report against the signal package. This bug has actually already been reported and fixed in version 1.3.0 of the signal package. See bug #39267 for more information. If there is still a problem in the current development version of the signal package, feel free to report a new bug.

Mike Miller <mtmiller>
Group Member
Fri 06 Mar 2015 10:27:05 AM UTC, original submission:  

When checking derivatives function findpeaks may evaluate an index to 0 (on line 123):

  idx = find (df1.*circshift(df1,1)<0 & df2<0)-1;



Suggest you add a workaround to get rid of such indices, otherwise an error results. Not fully checked the math, but, since derivative sign changes at edges are presumably not meaningful, it is prob ok to throw away such an index which is not meaningful anyway:
 
  idx(idx==0)=[];
 



Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -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
    2015-03-06 mtmiller CategoryOctave Function Octave Package
        Item GroupSegfault, Bus Error, etc. Incorrect Result
        StatusNone Duplicate
        Open/ClosedOpen Closed
        Release3.6.4 other
        Summaryindexing error within function causes fail signal package: indexing error in findpeaks function
        Dependencies- Depends on bugs #39267

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code